ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: DOM Frame ¶ÔÏó

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

HTML DOM
DOM ½éÉÜ
HTML DOM ¾ÙÀý
DOM ²Î¿¼
DOM ÕªÒª
HTML DOM ʵÀý
DOM Anchor
DOM Applet
DOM Area
DOM Base ¶ÔÏó
DOM Basefont¶ÔÏó
DOM Body ¶ÔÏó
DOM Document ¶ÔÏ..
DOM ʼþ
DOM Form ¶ÔÏó
DOM Frame ¶ÔÏó
DOM Frameset ¶ÔÏ..
DOM History
DOM Iframe ¶ÔÏó
DOM Image ¶ÔÏó
HTML DOM Button¶..

DOM Frame ¶ÔÏó


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:6644 :: ::

Frame Object
Frame ¶ÔÏó

The Frame object represents an HTML frame. For each instance of an HTML <frame> tag in a document, a Frame object is created.
ÿµ±HTMLÖÐÓÐ<frame>±êÇ©¾Í»á½¨Á¢Ò»¸öFrame¶ÔÏó

IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).

Frame ¶ÔÏóÊôÐÔ

Property
ÊôÐÔ
Description
ÃèÊö
IE  F N W3C
contentDocument Returns the document the frame contains
·µ»ØÎĵµ¿ò¼ÜµÄÄÚÈÝ
-     Yes
frameBorder Sets or returns whether to display a border for the frame
ÉèÖûò»ñÈ¡ÊÇ·ñÏÔʾ¿ò¼ÜµÄ±ß¿ò¡£
5 1 6 Yes
id Sets or returns the id of the frame (In IE 4 this property is read-only)
»ñÈ¡±êʶ¶ÔÏóµÄ×Ö·û´®¡£
4 1   No
longDesc Sets or returns a URL to a long description of the frame
ÉèÖûò»ñÈ¡¶ÔÏó³¤ÃèÊöµÄͳһ×ÊÔ´±êʶ·û(URI)¡£
6     Yes
marginHeight Sets or returns the top and bottom margins of the frame
ÉèÖûò»ñÈ¡ÏÔʾ¿ò¼ÜÖÐÎı¾Ö®Ç°µÄÉÏϱ߾à¸ß¶È¡£
5 1 6 Yes
marginWidth Sets or returns the left and right margins of the frame
ÉèÖûò»ñÈ¡ÏÔʾ¿ò¼ÜÖÐÎı¾Ö®Ç°µÄ×óÓұ߾à¿í¶È¡£
5 1 6 Yes
name Sets or returns the name of the frame
ÉèÖûò»ñÈ¡¿ò¼ÜµÄÃû³Æ¡£
5 1 6 Yes
noResize Sets or returns whether the frame can be resized
ÉèÖûò·µ»Ø¿ò¼ÜÊÇ·ñ¿ÉÒÔ±»Öض¨´óС
5 1 6 Yes
scrolling Sets or returns whether the frame can be scrolled
ÉèÖûطµ»Ø¿ò¼ÜÊÇ·ñ¿ÉÒÔ¹ö¶¯
5 1 6 Yes
src Sets or returns the URL to be loaded by the frame
ÉèÖûò·µ»Ø¿ò¼ÜÄÚ¼ÓÔØÄÚÈݵÄURL
5 1 6 Yes

Frame ¶ÔÏó·½·¨

Method
·½·¨
Description
ÃèÊö
IE F N W3C
blur() Removes focus from the frame
Ê¹ÔªËØÊ§È¥½¹µã²¢´¥·¢ onblur ʼþ
5 1   No
focus() Gives focus to the frame
ʹµÃÔªËØµÃµ½½¹µã²¢Ö´ÐÐÓÉ onfocus ʼþÖ¸¶¨µÄ´úÂë¡£
5 1   No

Frame ¶ÔÏóʼþ

Óï·¨: object.event_name="someJavaScriptCode"

Event
ʼþ
Description
ÃèÊö
IE F N W3C
onBlur Executes some code when the frame loses focus
ÔÚ¶ÔÏóʧȥÊäÈë½¹µãʱ´¥·¢¡£
5     No 
onFocus Executes some code when the frame gets focus
µ±¶ÔÏó»ñµÃ½¹µãʱ´¥·¢¡£
5     No

ÆÀÂÛ (0) All