JavaScript Bible, Gold Edition part 58

JavaScript Bible, Gold Edition part 58. 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. | 418 Part III Document Objects Reference You can specify width as either an absolute number of pixels as an integer or as a percentage of the width of the parent container. Percentage values are strings that include a trailing percent character . On the Example on the CD-ROM CD-ROM r Related Items width style sheet attribute. LABEL Element Object For HTML element properties methods and event handlers see Chapter 15. Properties Methods Event Handlers accessKey form htmlFor Syntax Accessing LABEL element object properties or methods IE4 window. method parameters IE5 NN6 window. elemID .property method parameters About this object The LABEL element lets you assign a contextual relationship between a form control text field radio button select list and so on and the otherwise freestanding text that is used to label the control on the page. This element does not control the rendering or physical relationship between the control and the label the HTML source code order does that. Wrapping a form control label inside a LABEL element is important if scripts will be navigating the element hierarchy of a page s content and the relationship between a form control and its label is important to the results of the document parsing. Properties accessKey Value String Read Write Chapter 19 Body Text Objects 419 NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility For most other HTML element objects the accessKey property description is covered in the generic element property descriptions of Chapter 15. The function of the property for the LABEL object is the same as the IE implementation for all other elements. The single-character string value is the character key to be used in concert with the OS- and browser-specific modifier key for example Ctrl in IE for Windows to bring focus to the form control associated with the label. This value is best set initially via the ACCESSKEY attribute for the LABEL element.

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.