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

Feedback on: irt.org FAQ Knowledge Base Q214, November 27, 2002 at 20:08:06:

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

Feedback on:
irt.org FAQ Knowledge Base Q214

Sent by
darkpractice on November 27, 2002 at 20:08:06:

Comments:
You can write a recursive function to navigate DOM and set the onload & onunload handlers, assuming you are coming from the same domain (in frames).

function kill(p_win) {
p_win.onload = null;
p_win.document.onload = null;

if (p_win.frames) {
for (var i = 0; i}

kill(window.top); // remove all handlers (onload & onunload)

use a different name than kill, of course


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

©2018 Martin Webb