'moveBy()' Example : moveBy « Javascript Methods « JavaScript Reference

'moveBy()' Example

    
<html>
<body>
<script language="JavaScript">
function function1() {
    window.moveBy(100,100);
}
</script>
<input type="button" value="Move the window 100 pixels to the left and 100 pixels 
from the top of the current location" onclick="function1();">
</body>
</html>

    
      
      








Related examples in the same category

1.'moveBy()' Syntax, Parameters and Note
2.'moveBy()' is applied to