You are here: Reference > HTML > attributes > frameBorder (frame, frameset, iframe)

frameBorder attribute (frame, frameset, iframe)

Browser support:
Sets whether the frame is surrounded by a 3-D border.
Note that the value of the frameBorder attribute affects the border of the frame element in Firefox, Opera, Google Chrome and Safari, while in Internet Explorer it specifies whether a client border should be displayed around the document window of the frame. In other words, the border and the frameBorder of the frame are different in Internet Explorer, the frameBorder is placed within, while the border is placed around the padding of the frame.
JavaScript page for this attribute: frameBorder. You can find other example(s) there.

Possible values:

String that sets the state of the border.
One of the following values:
No border is drawn.
Default. Frame border is drawn.
No border is drawn.
Frame border is drawn.
Default: 1.

Example HTML code 1:

This example illustrates the use of the frameBorder attribute:
<iframe src="frame_noborder.htm" frameborder="0"></iframe>
<br /><br />
<iframe src="frame_border.htm" frameborder="1"></iframe>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content