HTML DOM frameBorder Property
Complete IFrame Object Reference
Definition and Usage
The frameBorder property Sets or returns whether or not to display a border
around an iframe.
Syntax
iframeObject.frameBorder=1|0
|
Example
The following example aligns the iframe to the right according to the
surrounding text:
<html>
<head>
<script type="text/javascript">
function removeBorder()
{
document.getElementById("frame1").frameBorder="0";
}
function restoreBorder()
{
document.getElementById("frame1").frameBorder="1";
}
</script>
</head>
<body>
<iframe src="frame_a.htm" id="frame1"></iframe>
<br /><br />
<input type="button" onclick="removeBorder()"
value="Remove border" />
<input type="button" onclick="restoreBorder()"
value="Restore border" />
</body>
</html>
|
Try-It-Yourself Demos
Change the border of an iframe
Complete IFrame Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|