Question

1) Write a script to prompt for a username and password in Javascript.

1) Write a script to prompt for a username and password in Javascript.

Homework Answers

Answer #1

<!Doctype html>
   <head>
       <title>prompt</title>
   </head>
   <body>
       <script>
           /* prompting the username and password*/
           prompt("Enter username")
           prompt("Enter password")
       </script>
   </body>
</html>

---------------------------------------------------------------------------------------

please enable java script in your browser

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Suppose a certain web site has you choose a username and a password where the username...
Suppose a certain web site has you choose a username and a password where the username consists of 9 alphanumeric characters and the password is 6 alphanumeric characters the last of which must be numeric and the first of which must be alphabetical. a. How many usernames are possible if they are not case sensitive? b. How many passwords are possible if they are not case sensitive? c. How many usernames are possible if they are case sensitive? d. How...
5. Write a JavaScript script that has subprograms nested three deep and in which each nested...
5. Write a JavaScript script that has subprograms nested three deep and in which each nested subprogram references variables defined in all of its enclosing subprograms. please attached an output!!!!!
- Modify /login router to accept username and password as query string parameter - Read data...
- Modify /login router to accept username and password as query string parameter - Read data from user.json file - If username and passsword is valid then send resonse as below { status: true, message: "User Is valid" } - If username is invalid then send resonse as below { status: false, message: "User Name is invalid" } - If passsword is invalid then send resonse as below { status: false, message: "Password is invalid" } */ router.get('/login', (req,res) =>...
Please Use JavaScript and P5 3) Password Protected Create an application with two input fields and...
Please Use JavaScript and P5 3) Password Protected Create an application with two input fields and one button. When the button is clicked, verify the user has written these (exact) strings in the first and second field: First field should be "Username" Second field should be "Password" If the two fields match, update a DIV on the page with the text "Success" or else "Wrong information". For this assignment: use only one if statement to to the check. Remember you'll...
JAVASCRIPT/HTML: Please read 10 numbers that are listed below, edit the code given to sort the...
JAVASCRIPT/HTML: Please read 10 numbers that are listed below, edit the code given to sort the numbers from least to greatest, and then print those numbers. 10 numbers = { 9, 3, 2, 1, 10, 30, 4, 6, 7, 8} Submit the code and a screenshot of the output. [Reference JavaScript code] <html> <body> <H1>prompt()</h1> <p id="pro"></p> <script> // Array creation var num= new Array(); var ix = 0; // Read 10 numbers for (ix = 0; ix < 10;...
Write the below code to use HTML and JavaScript. 1)Write a JavaScript program to create a...
Write the below code to use HTML and JavaScript. 1)Write a JavaScript program to create a new string from a given string changing the position of first and last characters. The string length must be greater than or equal to 1. 2)Write a JavaScript program to check whether a string starts with 'Java' and false otherwise
Write a PHP script that obtains a URL and its description from a user and stores...
Write a PHP script that obtains a URL and its description from a user and stores the information into a database using MySQL. Create and run a SQL script with a database named URL and a table named Urltable. The first field of the table should contain an actual URL, and the second, which is named Description, should contain a description of the URL. Use www.deitel.com as the first URL, and input Cool site! as its description. The second URL...
The first script you need to write is login.sh, a simple script that you might run...
The first script you need to write is login.sh, a simple script that you might run when you first log in to a machine. We'll expand this script later, but for now it should include your name, username, hostname, current directory, and the current time. Here is some sample output to help guide you. Note that the bolded lines that start with "[user@localhost ~]$" are the terminal prompts where you type in a command, not part of the script. Of...
Write in Javascript, create a Javascript "Todo" object with the following properties. And declare the two...
Write in Javascript, create a Javascript "Todo" object with the following properties. And declare the two functions/methods below as prototype functions for the object. Todo name description datetime useremail functions getName() getUserEmail()
Using Java: implement a program with the following features. Thanks Produce a menu for the user...
Using Java: implement a program with the following features. Thanks Produce a menu for the user with 3 choices. Add a new user Attempt login See all users If the user chooses #1, prompt them for a username (a string). Then a password (a string). Using SHA-2 hash the password they gave you, and store the resulting username and hashed password in a datastructure of your choice. (It can be 2 arrays, one for usernames, one for hashed passwords). If...