
Originally Posted by
Cheng
I got this program FormArtist which provides a link to open the form in a popup window.
You shouldn't use a pop-up window, especially for a contact form (as this would appear to be). Pop-ups are unreliable, have been for a while, and are becoming less and less viable. How do you expect someone to contact you if the pop-up is blocked, or, with the code you posted, with scripting disabled?
Bu the window is not a 100% centered on the screen.
Putting it there reliably isn't very feasible; most solutions you'll find on the Web don't consider multiple monitors.
Is it possible to center this popup window without javascript?
No, not at all.
<a href="#" onclick="window.open('http://www.arbitrade.org/Form/arbitrade.htm', 'arbitrade', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=690,height=530');">Contact Form</a>
At least rewrite that to:
Code:
<a href="http://www.arbitrade.org/Form/arbitrade.htm" target="arbitrade"
onclick="return !window.open(this.href, this.target, 'scrollbars,resizable,width=690,height=530');"
>Contact Form</a>
A pop-up should always have scrollbars enabled and be resizable. If you gave it the right size, neither will matter. However, if you didn't, the content will be clipped and inaccessible.
Maybe someone here can show me what to change in this code here to center the popup.
If you must use pop-ups, let the window manager handle positioning.
Mike
Bookmarks