这两种弹窗口方式有区别吗?
一种
<input type="button" value="点此弹出" name="clickmepop" onClick="javascript:picWin=window.open('http://www.myserver.com/sample.html','sample','toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=450,height=270');">
另一种
<input type="button" name="clickmepop" value="点此弹出" onclick="pop_Window()">
javascript方法
function pop_Window() {
var url = "http://www.myserver.com/sample.html";
popupWindow = window.open(url,
"_blank", "width=600,height=290,resizable=yes,status=no,titlebar=no,location=no,scrollbars=yes");
popupWindow.focus();
}
采用第二种是,如果用了金山毒霸,就会弹出脚本错误(popupWindow找不到),第一个没问题,区别在哪呢?