JavaScript Reference/Javascript Properties/frameBorder

Материал из Web эксперт
Перейти к: навигация, поиск

"frameBorder" Example

    
<html>
<body>
<iframe id="myFrame" 
        src="http://www.wbex.ru" 
        width="300" 
        frameborder="no" 
        framespacing="5">
</iframe>
<br>
<button onclick="alert(document.all.myFrame.frameBorder);">Frame Border</button>
</body>
</html>



"frameBorder" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<frame>               <frameset>                      <iframe>|                      |
+----------------+--------------------------------------------------------------+



"frameBorder" Possible Values

Possible Values
1 or yes         the default; display,
0 or no          no border is displayed.



"frameBorder" Syntax and Note

Note:
Read and write property. 
Display the element border. 
    
Syntax:
    
document.getElementById("elementID").frameBorder = value
document.all.elementID.frameBorder = value // IE only