<html> <head> <script type="text/javascript"> function curr_Location() { alert(location) } function change_Location() { window.location="http://www.azhar-world.tk" } </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>
Edit the text above, and click on the button to see the result.
Copyright © 2007-2008, Www.JavaBasics.We.Bs All rights reserved.