亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

HTML DOM moveBy() 方法

定義和用法

moveBy() 方法可相對窗口的當(dāng)前坐標(biāo)把它移動指定的像素。

語法

window.moveBy(x,y)
參數(shù) 描述
x 要把窗口右移的像素數(shù)
y 要把窗口下移的像素數(shù)

實例

下面的例子將把窗口相對其當(dāng)前位置移動 50 個像素:

<html>
<head>
<script type="text/javascript">
function moveWin()
  {
  myWindow.moveBy(50,50)
  }
</script>
</head>
<body>

<script type="text/javascript">
myWindow=window.open('','','width=200,height=100')
myWindow.document.write("This is 'myWindow'")
</script>

<input type="button" value="Move 'myWindow'"
onclick="moveWin()" />

</body>
</html>