Here x is number of pixel in horizontal direction and y is in vertical direction.
Moving window linked to a button
To know more on this we will check this demo. Here we have used one button to open one small child window. Another button is kept to close this window. The third button is to move the window by 10 x 10 pixel from its current position.
Here is the code.
<!doctype html public "-//w3c//dtd html 3.2//en">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Demo of moveBy to move a window</title>
tm.focus(); // Keeping the focus on small window
<input type="button" name="btn" value="Open" onclick="to_open()";>
<input type="button" name="btn" value="Close" onclick="to_close()";>
<input type="button" name="btn" value="Move By" onclick="to_moveBy()";>
Here is the code for the small child window moveby-child.htm