Question
In a HTML document : Create a HTML5 structure. Link a JavaScript non-existing external file named script.js . Tasks : In the same HTML document,
In a HTML document : Create a HTML5 structure. Link a JavaScript non-existing external file named script.js . Tasks : In the same HTML document, create a program that will ask the user to supply as many names as wanted using one button and to view the list of all names supplied using the other button :
Create two buttons ( Add names and View list ). Create two functions ( names and list ). Function names : Asks the user to supply as many names as wanted. When done (entering no more names), the function stops. Names shall be stored in an array. Function list : Retrieves all the names of the array. Shows the name in a message window (one name per line). Use the buttons to call the proper functions.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started