ou are going to add some javascript to your webpage to greet the user. All the below instructions can be found with further explanations in the Javascript lectures. If you do not already have them, add two title tags so they display at the top of your webpage The first tag should have the contents: “Welcome” The second tag should have an id='username' and contents: “Placeholder” All Javascript must go in a file with the extension “.js”, such as “main.js” or “script.js”. Create a file to hold your javascript if one is not already there. Add a script tag at the end of your body tag that includes your javascript file. In your script tag, use the javascript prompt command to save input from the user into a variable Ask the user their name in the prompt command You can name the variable whatever you like Change the second contents to the name entered by the user it should be stored in the variable you created
ou are going to add some javascript to your webpage to greet the user. All the below instructions can be found with further explanations in the Javascript lectures. If you do not already have them, add two title tags so they display at the top of your webpage The first tag should have the contents: “Welcome” The second tag should have an id='username' and contents: “Placeholder” All Javascript must go in a file with the extension “.js”, such as “main.js” or “script.js”. Create a file to hold your javascript if one is not already there. Add a script tag at the end of your body tag that includes your javascript file. In your script tag, use the javascript prompt command to save input from the user into a variable Ask the user their name in the prompt command You can name the variable whatever you like Change the second contents to the name entered by the user it should be stored in the variable you created
Chapter12: Using Controls
Section: Chapter Questions
Problem 4E: Create a project named MyFlix. Its Form contains a ListBox with the titles of at least six movies or...
Related questions
Question
Javascript
You are going to add some javascript to your webpage to greet the user. All the below instructions can be found with further explanations in the Javascript lectures.
- If you do not already have them, add two <h1> title tags so they display at the top of your webpage
- The first tag should have the contents: “Welcome”
- The second tag should have an id='username' and contents: “Placeholder”
- All Javascript must go in a file with the extension “.js”, such as “main.js” or “script.js”. Create a file to hold your javascript if one is not already there.
- Add a script tag at the end of your body tag that includes your javascript file.
- In your script tag, use the javascript prompt command to save input from the user into a variable
- Ask the user their name in the prompt command
- You can name the variable whatever you like
- Change the second <h1 id=’username’> contents to the name entered by the user
- it should be stored in the variable you created
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning