JavaScript Reference/Javascript Properties/border
"border" Example
<source lang="javascript">
<html> <body> <img id="myImage" src="yourimage.gif"> <button onclick="myImage.border = 15;">Add a border</button> <button onclick="myImage.border = 0;">Remove border</button> </body> </html>
</source>
"border" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<frameset> <iframe> | | |<img> <object> |
| | |
+----------------+--------------------------------------------------------------+ </source>
"border" Syntax and Note<source lang="javascript"> Note: Read and write property. Sets the element"s border width. Syntax: document.getElementById("elementID").border = value document.all.elementID.border = value // IE only
|