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