<html>
<head>
<script type="text/javascript">
function moveWin()
{
myWindow.moveBy(50,50)
myWindow.focus()
}
</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>