Mega Code Archive

 
Categories / JavaScript Tutorial / HTML Tags
 

Image src

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.rntsoft.com/style/logo.png"><br>     <script language="JavaScript">     <!--     document.write("<i><b>",document.circle.src,"</b></i>");     -->     </script>     </html>