Web hosting rating - 225Chapter 16 .Window and Frame Objects References to
Wednesday, October 31st, 2007225Chapter 16 .Window and Frame Objects References to the frame and FRAME element objects are also different. You ve seen plenty of examples of how to reference an old-fashioned frame earlier in this chapter. But access to a FRAME element object is either via the element s ID attribute or through the child node relationship of the enclosing FRAMESET ele ment (you cannot use the parentNode property to back your way out of the cur rent document to the FRAME element that encloses the document). The way I prefer is to assign an ID attribute to tags and access the FRAME element object by way of the document object that lives in the parent (or top) of the frame- set hierarchy. Therefore, to access the frameBorderproperty of a FRAME element object from a script living in any frame of a frameset, the syntax is parent.document.all.frame1ID.frameBorder or, for IE5+ and NN6+ parent.document.getElementById( frame1ID ).frameBorder There is no access to the document contained by a frame when the reference goes through the FRAME element object. Window Object Properties Methods Event Handlers appCore alert() onAbort clientInformation attachEvent() onAfterPrint clipboardData back() onBeforePrint closed blur() onBeforeUnload Components captureEvents() onBlur controllers clearInterval() onChange crypto clearTimeout() onClick defaultStatus close() onClose dialogArguments confirm() onDragDrop dialogHeight createPopup() onError dialogLeft detachEvent() onFocus dialogTop disableExternalCapture() onHelp dialogWidth enableExternalCapture() onKeyDown directories execScript() onKeyPress document find() onKeyUp event fireEvent() onLoad external focus() onMouseDown Continued windowObject
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.