We can move the window to a fixed location by using moveTo() function, here is the code.
We have seen how moveBy() we used and moved the child window to different locations. Same way we will try moveTo function and move the window to a different location.
Here is the code.
The code for child window is available at moveBy
<!doctype html public "-//w3c//dtd html 3.2//en">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Demo of moveto to move a window</title>q
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 To" onclick="to_moveTo()";>
This article is written by plus2net.com team.