Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Frame/IFrame frameBorder property

Frame/IFrame frameBorder property

Frame/IFrame Object Reference Frame/IFrame Object


Definition and Usage

The frameBorder property sets or returns the value of the frameborder attribute of a frame/iframe element.

The frameborder attribute specifies whether to display the border around the iframe.

Syntax

frameObject.frameBorder=

value

or

iframeObject.frameBorder=

value

The frameBorder property can have the following values:

Value Description
1 Border on (default)
0 Border off

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the frameBorder property


Example

Example 1

Return the value of the frameborder attribute:

Runoob Tutorial(runoob.com)

This frameborder is set:

Try it »

Example 2

Remove frameborder:

Runoob Tutorial(runoob.com)



Note: This example does not work in Internet Explorer.

Try it »


Frame/IFrame Object Reference Frame/IFrame Object