tailieunhanh - JavaScript Bible, Gold Edition part 71

JavaScript Bible, Gold Edition part 71. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | 548 Part III Document Objects Reference FORM . FIELDSET ID form1set1 LEGEND ID form1set1legend Choose the Desired Performance LEGEND INPUT TYPE radio NAME speed ID speed1 LABEL FOR speed1 Fastest lower quality LABEL BR INPUT TYPE radio NAME speed ID speed2 LABEL FOR speed2 Slower best quality LABEL FIELDSET FORM Even so a LABEL and its associated form control element do not have to be adjacent to each other in the source code. For example you can have a label in one cell of a table row with the form control in another cell in the same or different row . Properties htmlFor Value Element Object Reference Read Write NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility The htmlFor property is the scripted equivalent of the FOR attribute of the LABEL element. An acceptable value is a full reference to a form control element INPUT TEXTAREA or SELECT element objects . It is highly unlikely that you would modify this property for an existing LABEL element. However if your script is creating a new LABEL element perhaps a replacement form use this property to associate the label with a form control. On the Example on the CD-ROM CD-ROM r Button Objects This chapter is devoted to those lovable buttons that invite users to initiate action and make choices with a single click of the mouse button. In this category fall the standard system-looking buttons with labels on them as well as radio buttons and checkboxes. For such workhorses of the HTML form these objects have a limited vocabulary of objectspecific properties methods and event handlers. I group together the button submit and reset objects for an important reason They look alike yet they are intended for very different purposes. Knowing when to use which button is important especially when to differentiate between the button and submit objects. Many a newcomer get the two confused and wind up with scripting error headaches. That confusion won t happen to you by the time you finish this chapter. The .

TỪ KHÓA LIÊN QUAN