The name property specifies the name of the image.
This property can only be set by the NAME attribute of the tag.
<html> <head> <title>Example of name property</title> </head> <img name="circle" src="http://www.java2s.com/style/logo.png"> <br> <script language="JavaScript"> <!-- document.write(document.circle.name); --> </script> </html>