Mega Code Archive

 
Categories / JavaScript Tutorial / Document
 

Document URL

The URL property specifies the URL of the document. This property is read-only. <HTML> <head> <title>this is a title</title> </head> <BODY bgcolor="beige" text= "black" link="darkblue" vlink="honeydew"> <SCRIPT language="JavaScript"> <!-- document.write("URL: "+document.URL); //--> </SCRIPT> </BODY> </HTML>