Location: Send the client to a new location (URL/page)
<html> <head> <script type="text/javascript"> function curr_Location(){ alert(location) } function change_Location(){ window.location="http://www.java2s.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>