[nycphp-talk] OT: revisiting window close methods?
Anirudh Zala
arzala at gmail.com
Fri Dec 8 11:18:10 EST 2006
On Friday 08 December 2006 20:26, R. Mariotti wrote:
Hi R. Mariotti
I think script mostly cannot close any browser window that was not opened by
it. At least this is true for Mozilla based browsers. So please research
again. In Firefox 2.0 you will get following message (not warning)
"Scripts may not close windows that were not opened by script."
Anirudh Zala
(Building standards)
> 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:
>
> document.close()
> close()
> javascript:window.close()
> windowClose()
>
> and others that I have seen referenced.
>
> However, nothing happens when this is clicked in my particular app. The
> button animates as expected but nothing happens.
>
> The browsers tested with are all mozilla/firefox are varying versions
> older to current and I'm sure it is important to note that the window I
> am trying to close it the ONLY open window in the browser. My research
> shows that this should close but possibly display a
> warning/acknowledgment message first. I've also check through the
> preferences to see if there were any suppression settings and I've found
> none.
>
> Can someone please advise as to how one should accomplish this task?
>
> Thanks,
>
> bobmct
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
More information about the talk
mailing list