we need to develop a simple website which has one iframe with a text field above it. User enters the website he/she needs to visit inside the text field. The entered website is displayed in the iframe.
The programming part is here:
We need to detect when every links get clicked and every form get submitted inside that iframe. The content of the iframe is in different domain of the webpage.
This can easily be done if the content of the iframe from the same domain. However, when the iframe got away from the domain, the function doesn't trigger.
It's one webpage, so we just need to see a demo where every link and form get submitted from any website, an alert message is displayed.