window.moveTo
In this chapter you will learn:
Move a window
window.moveTo(x,y)
moves the window to the upper-left coordinate.
<!DOCTYPE HTML> <!-- jav a2 s. c om-->
<html>
<body>
<script type="text/javascript">
//move the window to the upper-left coordinate
window.moveTo(0,0);
</script>
</body>
</html>
The following code moves the window to position (200, 300).
window.moveTo(200, 300);
Next chapter...
What you will learn in the next chapter:
Home » Javascript Tutorial » Window