|
Posted by Rik on 07/13/06 10:15
Mike wrote:
> I have a requirement to give a user some info while entering data in a
> form, like a help.
>
> Rather than the user clicking on a link that goes to a new page and
> closes the page the form is on, I want a new window to open so the
> user can easily flick between the 2 while entering data, rather than
> using the back/forward button on his browser.
>
> I've thought about a java popup but I'm concerned that if the user has
> a popup blocker, it will never appear.
>
> I've also though about using target="_blank" but I'm not sure if the
> screen size can be set prior to opening it or if a popup blocker would
> block it.
>
> My site is coded in PHP. Does anyone have any suggestions?
I'd:
<a href="./help.php"
onclick="window.open('./help.php','site_help','#your_settings');return
false;" target="site_help">Help</a>
You might want to check with the people on comp.lang.javascript for a
reliable method wether the window is indeed opened.
Will attempt a javascript method of opening a window. If that fails, a plain
HTML opening of a new (named) window. Any further clicks should be opened in
that same named window.
'requested' pop-ups (that open if you click on a link) should not be blocked
by decent pop-up blockers, only automatically opened windows.
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|