This seems to be fairly widely discussed:


Put a try/catch around the line assigning the value to
window.location.href, apparently IE throws an error from that line if
the navigation is cancelled (which is actually kinda cool).
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available

On Feb 12, 8:01 pm, Loc Nguyen <lochngu...@gmail.com> wrote:
> IE is returning an error when I click cancel on the confirmation
> message. You can view the source here:
> http://radiantcube.com/unload.html
> The happy path:
> 1) fill out a proper url in the text box
> 2) click go
> 3) page returns a confirmation message asking if you're sure you want
> to leave
> 4) click cancel, and the page doesn't unload
> The error happens in IE after I click cancel. Interestingly, if I
> click the Google link I don't get this error.
> Any thoughts and suggestions? Thanks so much for your help.
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to