Easy Tutorial
❮ Jsref Tostring Boolean Prop Audio Buffered ❯

Frame/IFrame frameBorder Attribute


Definition and Usage

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

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

Syntax

The frameBorder attribute can have the following values:

Value Description
1 Enable border (default)
0 Disable border

Browser Support

All major browsers support the frameBorder attribute.


Examples

Example 1

Return the value of the frameborder attribute:

Example 2

Remove the frameborder:


❮ Jsref Tostring Boolean Prop Audio Buffered ❯