javascript <script type="text/javascript"> function new_win() { window.open("http://www.google.com") } </script> Code (markup): button to call the function <input type=button value="Go To Google" onclick="new_win()" /> Code (markup): Good Luck, hope it helps