Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q1557, September 06, 2001 at 12:24:42:

You are here: 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.



©2018 Martin Webb