|
|
Last modified: October 09 2007.
|
Window Move-To Free Javascript
Window Move-To Free Javascript courtesy of http://www.cgiscript.net/
Window Move-To
Go to www.cgiscript.net
for more free tools!
|
Description:
Use this code to automatically move a window to a specified X,Y coordinate.
For example, you can automatically move a window to X0,Y0 (upper left).
Great to use this in pages in your site you link to using target="_blank"
(new window) or popup windows. You want them to open up to show more information
but you want it placed out of the way. |
Directions:
Add the onLoad code to the BODY tag of the document you would like to relocate.
Use the 'Grab Text' buttons to select the code within the adjacent textarea.
Then use Control-C or Edit -> Copy to buffer the text for pasting into your
document.Example:
<body onLoad="moveTo(0,0);">
Note: The first 0 in (0,0)
is for the X direction (from left margin) and the second 0 is for the Y
direction (from the top). (10,20) will set the upper left corner of the
window at X=10 and Y=20.
|
|
|
|
|