moveBy() method s used to move the current window to its position.
<html>
<head>
<script type="text/javascript">
function openmywindow()
{
myfirstwindow=window.open('','','width=100,height=100');
myfirstwindow.document.write("<p>This is the example of moveBy() method in Window</p>");
}
function movemywindow()
{
myfirstwindow.moveBy(300,300);
myfirstwindow.focus();
}
</script>
</head>
<body>
<input type="button" value="Open The Window" onclick="openmywindow()" />
<br /><br />
<input type="button" value="Move The Window" onclick="movemywindow()" />
</body>
</html>