HTML Dom tutorial 23-html Dom frame object
1: frame object
The frame object represents an HTML frame.
Each time <frame> appears in an HTML document, a frame object is created.
2: attributes of the frame object
Attribute |
Description |
IE |
F |
O |
W3C |
Contentdocument |
A document that contains the content of the framework. |
No |
1 |
9 |
Yes |
Frameborder |
Sets or returns whether to display the border around the frame. |
5 |
1 |
9 |
Yes |
ID |
Sets or returns the framework ID. |
4 |
1 |
9 |
Yes |
Longdesc |
Sets or returns a URL pointing to a document containing the framework content description. |
6 |
1 |
9 |
Yes |
Marginheight |
Sets or returns a blank page at the top and bottom of the framework. |
5 |
1 |
9 |
Yes |
Marginwidth |
Sets or returns the left and right edges of the frame. |
5 |
1 |
9 |
Yes |
Name |
Set or return the framework name. |
5 |
1 |
9 |
Yes |
Noresize |
Sets or returns whether the frame size can be adjusted. |
5 |
1 |
9 |
Yes |
Scrolling |
Sets or returns whether the frame can have a scroll bar. |
No |
1 |
No |
Yes |
SRC |
Sets or returns the URL of the document to be loaded into the framework. |
5 |
1 |
9 |
Yes |
3: Standard Properties
Property |
Description |
IE |
F |
O |
W3C |
Classname |
Sets or returns the class attribute of an element |
5 |
1 |
9 |
Yes |
Dir |
Sets or returns the direction of Text |
5 |
1 |
9 |
Yes |
Lang |
Sets or returns the language code for an element |
5 |
1 |
9 |
Yes |
Title |
Sets or returns an element's advisory title |
5 |
1 |
9 |
Yes |