Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q823 How can I make a window that always stays on top and never closes?

irt.org | Knowledge Base | JavaScript | Window | Q823 [ previous next ]

Q823 How can I make a window that always stays on top and never closes?

Place the following in the document to be loaded in a popup window.

<BODY onBlur="self.focus()" onUnload="window.open('window.htm',window.name + 'x','width=200,height=250')">

It can however be defeated by disabling JavaScript.

Microsoft Internet Explorer can use the unBeforeUnload to ask the user if he/she really wants to close: http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onbeforeunload.asp

For a good article, please read http://developer.netscape.com:80/viewsource/goodman_modal/goodman_modal.html

Feedback on 'Q823 How can I make a window that always stays on top and never closes?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.