If it's not the same domain but you have control of the iframe content (both domains are under your control), you can communicate with the outer frame by using a cross domain communication framework (google it or build it yourself), i.e. catch the error in the iframe by setting the onerror handler from within the
Keeping this in view, how do I fix an iFrame refused connection?
Resolution
- Open your source site's web.config file./div>
- Search "X-Frame". a.
- Search "</system.webServer> Just before that tag insert the following code:
- Change to the domain name that you are using the iFrame on.
Additionally, how do I enable IFrame? Resolution
- Open your source site's web.config file./div>
- Search "X-Frame". a.
- Search "</system.webServer> Just before that tag insert the following code:
- Change to the domain name that you are using the iFrame on.
In this manner, how do you use Onerror in Javascript?
To use the onerror event, you must create a function to handle the errors. Then you call the function with the onerror event handler. The event handler is called with three arguments: msg (error message), url (the url of the page that caused the error) and line (the line where the error occurred).
What is IFrame in HTML?
Definition and Usage. The <iframe> tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document.
