I have an iframe which, in certain circumstances, needs to nullify the onbeforeunload event of its parent window. I thought I could just use
but this doesn't seem to work. Can anyone help? Before anyone gets huffy about the use of frames and IE-only events, I have my reasons!
Code:
window.parent.onbeforeunload = null;