function open_win() { window.open("http://jsrun.net") }
<form> <input type="button" value="打开窗口" onclick="open_win()"> </form>