NYCPHP Meetup

NYPHP.org

[nycphp-talk] OT: revisiting window close methods?

tedd tedd at sperling.com
Fri Dec 8 10:23:20 EST 2006


At 9:56 AM -0500 12/8/06, R. Mariotti wrote:
>Gentlemen;
>
>As most of the php we create and maintain deals with browser 
>interaction, one of those actions is to close the current window 
>if/when the user click on the appropriate supplied button.
>
>I have such a button on my page(s) that contains a tag that reads:
>
>onclick="window.close();"
>
>and I've tried numerous variations of the same such as:
>-snip-
>
>Can someone please advise as to how one should accomplish this task?


A javascript list might be better. But try:

<a href="#" onclick="window.parent.close()">Close Window</a>

Also review:

http://www.sitepoint.com/article/pop-ups-dead-links

hth's

tedd


-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the talk mailing list