'border' Example : border « Javascript Properties « JavaScript Reference

'border' Example

    
<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>

    
      
      








Related examples in the same category

1.'border' Syntax and Note
2.'border' is applied to