August 1999
Intermediate to advanced
1488 pages
72h 53m
English
image.border
The border property of the Image object specifies the width of the border around an image in pixels. This property can only be set by the BORDER attribute of the <img> tag.
Listing 7.302 shows how the border property is used.
<html>
<head>
<title>Example of border Property</title>
</head>
<img name="circle"
src="circle.gif"
border=10>
<br>
<script language="JavaScript">
<!-- Hide
//Display width of border
document.write("The image has a border with of ");
document.write(document.circle.border," pixels.");
//Hide End --->
</script>
</html>
|
Read now
Unlock full access