'border' Example : Border « Style Layout « JavaScript DHTML






'border' Example

 
    
<html>
<body>
<img id="myImage" src="http://www.java2s.com/style/logo.png">
<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 Color Light Example
2.Border Color Dark Example
3.Border Color Example
4.div.style.border="3px dashed #ff0";