87,997
社区成员




<html>
<head>
<title>打开新窗口</title>
<script type="text/javascript">
function Open3()
{
var oNewWin=window.open("http://www.qq.com/","wroxwindow","height=150,width=300,top=10,left=10,resizable=yes");
oNewWin.moveTo(100,100); //Error: 拒绝访问
oNewWin.resizeTo(200,200);
}
</script>
</head>
<body>
<input type="button" value="Open3" onclick="Open3()">
</body>
</html>
<html>
<head>
<title>打开新窗口</title>
<script type="text/javascript">
function Open3() {
var oNewWin=window.open("","wroxwindow","height=150,width=300,top=10,left=10,resizable=yes");
oNewWin.moveTo(100,100); //Error: 拒绝访问
oNewWin.resizeTo(200,200);
oNewWin.document.location.href="http://www.qq.com/"
}
</script>
</head>
<body>
<input type="button" value="Open3" onclick="Open3()">
</body>
</html>