beau.scott at gmail.com
Mon Feb 23 22:22:34 MST 2009
window.close() will work fine (so your popups, etc., will close just fine.
previously said, most modern browsers don't allow it.
Click the popup button (opens a window with window.open(...)), you'll be
directed to win.htm in a popup, which you can close with
However, if you go to
http://beauscott.com/examples/jswindows/win.htmdirectly and try to
press close, nothing will happen.
Hope that helps.
On Mon, Feb 23, 2009 at 8:16 PM, Wade Preston Shearer <
wadeshearer.lists at me.com> wrote:
> On 23 Feb 2009, at 19:34, Scott Hill wrote:
> I want to have a button that I can click that will close the window (or
>> tab). I have tried document.close, window.close, and this.close. None
>> seems to work. Any ideas on how to do this. Right now I am using Firefox
>> but I need it to work on IE as well.
> Give this a try:
> UPHPU mailing list
> UPHPU at uphpu.org
> IRC: #uphpu on irc.freenode.net
Beau D. Scott
More information about the UPHPU