You are here: Reference > JavaScript > client-side > HTML DOM > properties > border (frameset)

border property (frameset)

Browser support:
Specifies or returns the width of the border between frames.
To manipulate the border of a frame more efficiently, use the frameBorder property and/or the border style property.

Syntax:

object.border;
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: border

Possible values:

String that sets or retrieves the space between frames, with an integer, optionally followed by a 'px' (pixel) unit designator.
Default: this property has no default value.

Example HTML code 1:

This example illustrates the use of the border attribute:
Code
topFrame.htm
mainFrame.htm
<frameset rows="110,*" cols="*" border="10px">
    <frame src="topFrame.htm" name="topFrame" scrolling="No"/>
    <frame src="mainFrame.htm" name="mainFrame"/>
</frameset>
Did you find this example helpful? yes no

Example HTML code 2:

You can get the border property of the frameset from one of its frames. The code below shows how to implement it.
<script type="text/javascript">
    function GetFramesetBorder () {
        var frameSet = window.frameElement.parentNode;
        return frameSet.border;
    }
</script>
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content