欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML DOM moveBy() 方法

定義和用法

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

語法

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

實(shí)例

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

<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>