Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q452, November 15, 2002 at 02:54:22:

You are here: irt.org | About | Feedback | 4276 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q452

Sent by
John Dodrill on November 15, 2002 at 02:54:22:

Length:
Just right

Comments:
I'm a Javascript Newbie so excuse me if I'm wrong:

I've found if I open a window from another window using:

window.open("http://www.mysite.com/mypage.htm");

then I can also close it from within the javascript on that window, without confirmation, using:

window.top.close();

example:

On right click on my page http://john.dodrill.name I initially transfer control to a page I open, then change the url of the page I was in to whatever. Then if the user right clicks in the new window I've opened with my content, it closes without asking.

Good Luck!



Other feedback on 'irt.org FAQ Knowledge Base Q452' - show all

©2018 Martin Webb