defaultSelected* focus() (Windows only) OnChange options[n].index* onFocus() (Windows only) options[n].selected* options[n].text* options[n].value selectedIndex JavaScript uses a hierarchical method of addressing the various elements on any given Web page. Moving from most general to most specific, each element is separated by a period. For example, the background color property of a page is document.bgColor. The status of a checkbox named sendPromo on a form called orderForm is document.orderForm.sendPromo.checked. The more complex your objects, the more important it is for you to master this syntax. NOTE NOTE BC 16 Creating and Using Objects Input fields: Text, Textarea, Password, File, Image, and Hidden When information is entered in one of the input type fields, the data is stored in the value property of the specific object. For example, look again at the code for the Plugin object and notice the text field where the selected file??™s name is displayed:
When the objectTag() function is run, the contents of that text box are assigned to a variable, and that variable is included in the output written to the Web page: function objectTag() { // Return the html tag that should be inserted var retval = ???