Question: 2 . Use your code editor to open the project 0 9 - 0 2 a _ txt . html , project 0 9 -
Use your code editor to open the projectatxthtml projectatxtjs projectbtxthtml and projectbtxtjs files from the js c project folder. Enter your name and the date in the comment section of each file and save them as projectahtml projectajs projectbhtml and projectbjs respectively.
Go to the projectahtml file in your code editor and add a script element linked to the projectajs file. Defer the loading of the script until the page finishes loading. Study the contents of the file and then close it saving your changes.
Go to the projectajs file in your code editor. At the bottom of the file insert an onclick button that runs the showData function when the Submit button is clicked.
Add the showData function and within the function insert the following commands:
a Insert a command to store the value of the riderName object in a session storage object named riderName.
b Repeat the previous step for the ageGroup, bikeOption, routeOption, accOption, region, miles, and comments objects.
c Add a command that changes the value of the location.href object to the projectbhtml file.
Close the file, saving your changes.
Go to the projectbhtml file in your code editor and add a script element linked to the projectbjs file. As before, defer the loading of the script until the page loads. Review the contents of the file and then close it saving your changes.
Go to the projectbjs file in your code editor. At the bottom of the file insert a command to retrieve the value of the riderName key from session storage and store that value in the text content of the riderName object in the web page.
Repeat Step for the ageGroup, bikeOption, routeOption, accOption, region, miles, and comments keys.
Save your changes to the file and then load projectahtml in your web browser. Enter sample membership data in the web form and then click the Submit button. Verify that the projectbhtml opens and that the membership
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
