HTML DOM moveBy() Method
Complete Window Object Reference
Definition and Usage
The moveBy() method moves a window a specified number of pixels relative
to its current coordinates.
Syntax
Example
The following example moves the new window with 50px relative to its current
position:
<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>
|
Try-It-Yourself Demos
Move a window
with moveBy()
Complete Window Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|