Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

91 users online



Positioning pop-up windows

Positioning pop-up windows

Currently viewing this thread: 1 (0 members and 1 guests)


exit-wd

exit-wd

stillat school, into web design and punk music etc.
Status: Offline!

Positioning pop-up windows

Could someone please let me know how to position pop-up windows on the screen with JavaScript?

I know you can do it, but can't seem to find the code...

sparky

sparky

I need a haircut
Status: Offline!

specify top= and left= in your code.

Code:


window.open('http://www.google.com/', 'google', 'width=400,height=400,[b]left=150,top=150[/b]');

___________________

Jon Culver Chia Pets

exit-wd

exit-wd

stillat school, into web design and punk music etc.
Status: Offline!

cheers thats just what I needed:D

Rad

Rad

thinking of something witty to put here
Status: Offline!

If the window is already open:

Code:


mywin.moveTo(150, 150);


moveTo(x, y)

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0063 seconds.