以下代码在Firefox和IE中运行良好,但在Google Chrome中无法使用,任何人都可以了解如何使其工作?或者在Google Chrome中移动窗口的替代方法?this.moveTo在Google Chrome中不起作用
谢谢!
<html>
<head>
<title>Open windows for clicks</title>
</head>
<script type="text/javascript">
function moveWindow()
{
this.resizeTo(400,300);
this.moveTo(0,300);
}
</script>
<body onload="moveWindow();">
<br>
</body>
</html>
我问过类似的问题一次,看看这里:http://stackoverflow.com/questions/3884116/how-to-move-and-resize-the-browsers- window-in-opera-and-chrome – rhino 2010-11-17 11:26:19