Web Design Forum: Javascript - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Javascript pop up box position

#1 User is offline   craigpettit 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 174
  • Joined: 11-September 08
  • Reputation: 0
  • Location:Surrey UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 14 March 2010 - 09:31 PM

Hi,

I have a placed all the legal stuff of a website in a javascript popup window (onclick) so it is not intrusive, the window works fine. however i want it positioned in the center of the screen.

i know i can set positoning by typing left=200,top=200 or whatever but then if the screen res is different to my own then the window will not be centered.

Is there a way i can center the popup window without going through masses of php if statements and screen res detection?

Cheers
Craig
0

#2 User is offline   craigpettit 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 174
  • Joined: 11-September 08
  • Reputation: 0
  • Location:Surrey UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 14 March 2010 - 09:51 PM

not to worry after 5 hours, i finally give up and post on here and solve it :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users