HTML DOM border Property
Complete Image Object Reference
Definition and Usage
The border property sets or returns the width of the border around an image.
Syntax
imageObject.border=pixels
|
Example
The following example changes the border text of an image:
<<html>
<head>
<script type="text/javascript">
function changeBorder()
{
document.getElementById("compman").border="3"
}
</script>
</head>
<body>
<img id="compman" src="compman.gif" alt="Computerman" />
<br /><br />
<input type="button" onclick="changeBorder()"
value="Change border" />
</body>
</html>
|
Try-It-Yourself Demos
Change
the border around an image
Complete Image Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|