Move window By : window « Javascript Objects « JavaScript DHTML
- JavaScript DHTML
- Javascript Objects
- window
Move window By
<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"
onclick="function1();">
</body>
</html>
Related examples in the same category