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

Q222 How can I open a window which will always stay on top of all browser windows?

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

Q222 How can I open a window which will always stay on top of all browser windows?

A simple solution, but one which may not work on all browsers/platforms, is to us the onBlur event handler to regain the focus:

<body onBlur="self.focus()">

To do this correctly, you really need a modal dialogue window, supported in Internet Explorer, but not in Netscape Navigator. Danny Goodman provides a solution for both browsers which is described at: http://developer.netscape.com:80/viewsource/goodman_modal/goodman_modal.html.

Feedback on 'Q222 How can I open a window which will always stay on top of all browser windows?'


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.