我在 Internet Explorer 中看到“无效参数”,window.open 使用 javascript。我将如何解决它?
我在“var newwindow = window.open (url, 'Popup Demo', 'toolbar=no, location=no, directory=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);"。
这是我的代码:
<script type="text/javascript" language="javascript">
<!--
function popitup(url) {
var w = 500;
var h = 500;
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var newwindow = window.open (url, 'Popup Demo', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
if (window.focus) {
newwindow.focus();
}
return false;
}
// -->
</script>