Frame/IFrame frameBorder property
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





All major browsers support the frameBorder property
Example
Example 1
Return the value of the frameborder attribute:
This frameborder is set:
Try it »
Example 2
Remove frameborder:
Note: This example does not work in Internet Explorer.
Try it »
Frame/IFrame Object