Mega Code Archive

 
Categories / JavaScript Reference / Javascript Properties
 

Pathname Example

<html> <body> <script language="JavaScript">     function function1() {        alert(document.getElementById("myLink").pathname);     } </script> <a id="myLink" href="http://www.rntsoft.com" target="_blank">rntsoft.com home page</a> <input type="Button" id="myB" value="File and path to the page" onClick="function1();"> </body> </html>