|
Feedback on: irt.org FAQ Knowledge Base Q1557
irt.org | About | Feedback | 3136 [ previous next ] Feedback on: irt.org FAQ Knowledge Base Q1557
Sent by Bradford on September 06, 2001 at 12:24:42:
Comments: The given code in the answer is completely wrong. It should look something like "sx = <screenX>; sy = <screenY>; cx=document.body.clientWidth cy=document.body.clientHeight; if(window.moveTo) { window.moveto((sx-cx)/2, (sy-cy)/2) } This pseudocode needs checks for browser versions and additional code for obtaining the size of the screen. I forgot the Javascript to obtain screenX and screenY.
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.