I have an IFrame in a page and IFrame has some JavaScript. At run time JavaScript in IFrame gives exception which i want to catch on parent window. How to do that?
The only way is if the frame is on the same domain, in which case you can do, from parent:
iframe.contentWindow.onerror = function(){ // handle error }