views:

22

answers:

0

I have used onbeforeunload confirmation in my website, it works fine in all browser except in one case. When I change the location of the browser by window.location.href = requestUrl, in javascript. At that case if I click the cancel button of the confirmation box, in IE it gives Unspecified error.

Can anybody help me, how can I avoid this error(I don't wanna use try catch)?