answersLogoWhite

0

Just use the <input type="text"> and <input type="password">. You can also use the prompt() function, but... I'd recommend against it, since it doesn't get censored and is also just plain annoying.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How Write javascript program to display multiplication table of 2 without accepting input from user?

Use a counted for loop. On each iteration, multiply the control variable by 2 and print the result.


What is the input door password for stick strike?

the input password is :password


How do you write BASIC program to accept variables?

dim a input a


Can you give password checking 8086 microprocessor program?

Certainly! A simple password checking program for the 8086 microprocessor can be implemented using Assembly language. The program would typically store a predefined password in memory, prompt the user to input their password, and then compare the input with the stored password using string comparison instructions. If the passwords match, it can display a success message; otherwise, it can indicate a failure. Here's a basic outline of the logic: ; Assume the predefined password is &quot;PASS&quot; ; Input from the user is stored in a buffer ; Use string comparison instructions to validate the password For a complete implementation, you would need to set up the data segment, handle user input, and implement string comparison routines.


How do you use Javascript confirm password?

function validate(form) { var e = form.elements; /* Your validation code. */ if(e['password'].value != e['confirm-password'].value) { alert('Your passwords do not match. Please type more carefully.'); return false; } return true; } with a form along the lines of &lt;form action="..." method="post" onsubmit="return validate(this);"&gt; &lt;label&gt;Password: &lt;input type="password" name="password" value=""&gt; &lt;/label&gt; &lt;label&gt;Confirm password: &lt;input type="password" name="confirm-password" value=""&gt; &lt;/label&gt; &lt;/form&gt;


Write a C program that takes a binary file as input and finds error check using different mechanisms?

write a c program that takes a binary file as input and finds error check using different mechanisms.


Can Javascript create 3D?

Javascript is a browser-run script, so I highly doubt that Javascript possesses the capabilities to create 3-D images, but it can input them into the webpage.


Java script program to Print the Fibonacci series using array?

&lt;script type = "text/javascript"&gt; var input; var rev = 0; input=window.prompt ("Please enter a 5-digit number to be reversed."); input = input * 1; while (input &gt; 0) { rev *= 10; rev += input % 10; input /= 10; } document.write ("Reversed number: " + rev); &lt;/script&gt;


How do you Write A program in c language for checking a diagonal matrix?

Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.


Write a program that input a positive integer and prints a triangle using for loop?

write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?


How will you create username and password HTML tags?

&lt;input type="text" /&gt; That could be used for a username &lt;input type="password" /&gt; That could be used as a password.


Write a JavaScript program to print first ten odd natural numbers?

&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript"&gt; function series() { var i=1 while(i&lt;=10) { document.write(i+"&lt;br&gt;") i=i+2 } } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form action="#" name=f1&gt; &lt;input type=button value="generate series" onclick="series()"&gt; &lt;/form&gt; &lt;br&gt;&lt;span id="outtab"&gt;&lt;/span&gt; &lt;/body&gt; &lt;/html&gt;