PDA

View Full Version : Center Popup


zoobie
04-22-2003, 03:59 AM
Is there any way to write this without a function?

So far, I have:

<a href="#" onclick='window.open("page.html", "", "width=500, height=400, left=(screen.availWidth - 500) / 2; top=(screen.availHeight - 400) / 2;");'>Click</a>

Thanks

A1ien51
04-22-2003, 05:34 AM
you are going to have to have the link written dynamically in order to get the screen wicth/height onload.....