function openScript(url){ var Win = window.open(url,"openScript",'width=500,height=400,resizable=1,scrollbars=yes,menubar=no,status=yes' ); Win.focus(); } 用window.open也可以 加上 Win.focus(); 是用来实现:点击链接的时候新开的窗口保持在最上面而不被其他窗口挡住