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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!