You are here: irt.org | FAQ | JavaScript | Window | Q66 [ previous next ]
The following works in JavaScript 1.1, although on a Mac it causes an error on Internet Explorer 3 and Internet Explorer 4:
<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.