CD-381Appendix F (Web server) . Examples from Parts III and
Thursday, December 27th, 2007CD-381Appendix F . Examples from Parts III and IV document.execCommand( Refresh ) document.execCommand( SelectAll ) document.execCommand( Unselect ) All methods return true in the Results box. Because any way you can evaluate a statement in The Evaluator forces a body selection to become deselected before the evaluation takes place, you can t experiment this way with the selection-oriented commands. getElementById( elementID ) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example You can find many examples of this method in use throughout this book, but you can take a closer look at how it works by experimenting in The Evaluator (Chapter 13). A number of elements in The Evaluator have IDs assigned to them, so that you can use the method to inspect the objects and their properties. Enter the following statements into both the top and bottom text fields of The Evaluator. Results from the top field are references to the objects; results from the bottom field are lists of properties for the particular object. document.getElementById( myP ) document.getElementById( myEM ) document.getElementById( myTitle ) document.getElementById( myScript ) As you see in the Results field, NN6 is more explicit about the type of HTML element object being referenced in the top text field than IE5. But both browsers are pointing to the same objects just the same. getElementsByName( elementName ) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility document.getElementsByName()
Check Tomcat Web Hosting services for best quality webspace to host your web application.