JavaScript Reference/Javascript Properties/frameBorder
Содержание
"frameBorder" Example
<source lang="javascript">
<html> <body> <iframe id="myFrame"
src="http://www.wbex.ru" width="300" frameborder="no" framespacing="5">
</iframe>
<button onclick="alert(document.all.myFrame.frameBorder);">Frame Border</button>
</body>
</html>
</source>
"frameBorder" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<frame> <frameset> <iframe>| | +----------------+--------------------------------------------------------------+
</source>
"frameBorder" Possible Values
<source lang="javascript">
Possible Values 1 or yes the default; display, 0 or no no border is displayed.
</source>
"frameBorder" Syntax and Note
<source lang="javascript">
Note: Read and write property. Display the element border.
Syntax:
document.getElementById("elementID").frameBorder = value document.all.elementID.frameBorder = value // IE only
</source>