Mega Code Archive

 
Categories / JavaScript DHTML / HTML
 

Location

<html> <head> <script type="text/javascript">     function curr_Location(){         alert(location)     }          function change_Location(){         window.location="http://www.rntsoft.com"     } </script> </head> <body> <form> <input type="button" onclick="curr_Location()" value="Show current URL"> <input type="button" onclick="change_Location()" value="Change URL"> </form> </body> </html>