0
我有一個頁面,其中有一個鏈接,點擊其中彈出窗口需要顯示。這在Firefox中正常工作,但在IE中不起作用。實際上,它會在彈出窗口中顯示HTTP 404錯誤。下面是JavaScript和與我執行JavaScript的鏈接:彈出窗口JavaScript在IE中不工作
<a href="javascript:NewWindow('artworkspecs.php','Artwork','750','600','0','0');" style="cursor:pointer; font-weight:normal" title="Recommended Artwork Specifications" rel="nofollow"><b>Recommended Artwork Specifications</b></a>
的JavaScript:
<script language=javascript type="text/javascript">
function NewWindow(page, name, w, h, location, scroll) {
var winl = (screen.width - w)/2;
var wint = (screen.height - h)/2;
winprops = 'height='+h+',width='+w+',location='+location+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(page, name, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
</script>
<script type="text/javascript"><!--
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=420,screenX=150,screenY=150,top=150,left=150')
}
//--></script>