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

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

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

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

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 Iframe ¶ÔÏó


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

IFrame Object
IFrame ¶ÔÏó

The IFrame object represents an HTML inline frame. For each instance of an HTML <iframe> tag in a document, an IFrame object is created.
IFrame ¶ÔÏó´ú±íHTML ÖáÏò(ÄÚ)¿ò¼Ü¡£µ±HTMLÖÐ<iframe>±êÇ©£¬Iframe¶ÔÏó¾Í½¨Á¢ÁË

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

PropertiesÊôÐÔ

Property
ÊôÐÔ
Description
ÃèÊö
IE F N W3C
align Sets or returns how to align the iframe according to the surrounding text
ÉèÖûò»ñÈ¡ÅÅÁС£
5 1 6 Yes
contentDocument Returns the document the iframe contains
Îĵµ¿ò¼ÜµÄÄÚÈÝ
- 1 6 Yes
frameBorder Sets or returns whether to display a border for the iframe
ÉèÖûò»ñÈ¡¿ò¼Ü¼äµÄ¿Õ¼ä£¬°üÀ¨ 3D ±ß¿ò¡£
5     Yes
height Sets or returns the height of the iframe
ÉèÖûò»ñÈ¡¶ÔÏóµÄ¸ß¶È¡£
5     Yes
id Sets or returns the id of the iframe (In IE 4 this property is read-only)
»ñÈ¡±êʶ¶ÔÏóµÄ×Ö·û´®¡£
4 1   No
longDesc Sets or returns a URL to a long description of the iframe
ÉèÖûò»ñÈ¡¶ÔÏó³¤ÃèÊöµÄͳһ×ÊÔ´±êʶ·û(URI)¡£
6     Yes
marginHeight Sets or returns the top and bottom margins of the iframe
ÉèÖûò»ñÈ¡ÏÔʾ¿ò¼ÜÖÐÎı¾Ö®Ç°µÄÉÏϱ߾à¸ß¶È¡£
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 iframe
ÉèÖûò»ñÈ¡¿ò¼ÜµÄÃû³Æ¡£
5     Yes
scrolling Sets or returns whether the iframe can be scrolled
ÉèÖûò»ñÈ¡¿ò¼ÜÊÇ·ñ¿É±»¹ö¶¯¡£
5 1 6 Yes
src Sets or returns the URL to be loaded by the iframe
ÉèÖûò»ñȡҪÓɶÔÏó×°ÈëµÄ URL¡£
5 1 6 Yes
tabIndex Sets or returns the index that defines the tab order for the iframe
ÉèÖûò»ñÈ¡¶¨Òå¶ÔÏóµÄ Tab ˳ÐòµÄË÷Òý¡£
5     No
width Sets or returns the width of the iframe
ÉèÖûò»ñÈ¡¶ÔÏóµÄ¿í¶È¡£
5     Yes

Methods·½·¨

Method
·½·¨
Description
ÃèÊö
IE F N W3C
blur() Removes focus from the iframe
È¡Ïû¶ÔiframeµÄ¾Û½¹
5     No
focus() Gives focus to the iframe
ÈÃiframeµÃµ½¾Û½¹
5     No

Eventsʼþ

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

Event
ʼþ
Description
ÃèÊö
IE F N W3C
onBlur Executes some code when the iframe loses focus
µ±iframeʧȥ½¹µãµÄʱºòÖ´ÐдúÂë
5     No 
onFocus Executes some code when the iframe gets focus
µ±iframeµÃµ½½¹µãµÄʱºòÖ´ÐдúÂë
5     No

ÆÀÂÛ (0) All