tailieunhanh - JavaScript Bible, Gold Edition part 40

JavaScript Bible, Gold Edition part 40. 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. | 238 Part III Document Objects Reference To learn more about the external object and how to extend the MS object model visit http browser overview Extending_the_Dynami. On h Example on the CD-ROM CD-ROm r frameElement Values FRAME or IFRAME Object Reference Read-Only NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility If the current window exists as a result of a FRAME or IFRAME tag the window s frameElement property returns a reference to the hosting element. As is made clear in the discussion later in this chapter about the FRAME element object a reference to a FRAME or IFRAME element object provides access to the properties that echo the attributes of the HTML element object. For a window that is not part of a frameset the frameElement property returns null. The convenience of this property becomes apparent when a single document is loaded into multiple framesets. A script in the document can still refer to the containing FRAME element even when the ID of the element changes from one frameset to another. The FRAMESET element is also accessible via the parentElement property of the frameElement property var frameSetObj A reference to the FRAMESET element opens possibilities of adjusting frame sizes. Related Items FRAME IFRAME objects. frames Value Array Read-only NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility In a multiframe window the top or parent window contains any number of separate frames each of which acts as a full-fledged window object. The frames property note the plural use of the word as a property name plays a role when a statement must reference an object located in a different frame. For example if a Chapter 16 Window and Frame Objects 239 button in one frame is scripted to load a document in another frame the button s event handler must be able to tell JavaScript precisely where to display the new HTML document. The frames property assists

TỪ KHÓA LIÊN QUAN