110Part IIJavaScript TutorialExercises1.Rework Listings 9-1, 9-2, 9-3, and (Web server version)

110Part IIJavaScript TutorialExercises1.Rework Listings 9-1, 9-2, 9-3, and 9-4 so that the script functions all receive the mostefficient form or form element references directly from the invoking event handler. 2.For the following form (assume it s the only form on the page), write at least 10 ways toreference the text input field as an object in all modern scriptable browsers.

3.In the following HTML tag, what kind of information do you think is being passed withthe event handler? Write a function that displays in an alert dialog box the informationbeing passed. 4.A document contains two forms named specificationsand accessories. In theaccessoriesform is a field named acc1. Write at least two different statements thatset the contents of that field to Leather Carrying Case. 5.Create a page that includes a selectobject to change the background color of the cur- rent page. The property that you need to set is document.bgColor, and the three val- ues you should offer as options are red, yellow, and green. In the selectobject, thecolors should display as Stop, Caution, and Go. …