Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Positioning a Popup window

Status
Not open for further replies.

hc1619

Programmer
Feb 17, 2004
62
NZ
I really need to launch a popup window and display it in the bottom right corner of the user's screen. It's an Instant Messenger application on my website, so just like match.com do it (if any of u have seen it), the popup launches in the bottom right corner. Can anyone point me in the right direction or lend me a script that will achieve this? Thanks!
 
Code for opening a new window with a location:

Code:
window.open("page.html","winName","left=20,top=80");

Method for getting the window height:

Code:
var width = window.screen.width;
var height = window.screen.height;

Use these variables, subtract accordingly, and put them in the window.open.

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top