I understand the use of this code snippet in Jquery below:
$(document).ready(function() {
alert("carregou");
})
However, the problem in question is that when I load something into an iframe, this function does not run again, how do I detect when an iframe is loaded?
Initially, when entering the page, the iframe is not displayed, the above function complies, alerting when the html page is loaded, but the person can choose between the screen options, and so will open an iframe in any option chosen, but does not display the message "loaded" when the iframe finishes loading. Anyway, the question is:
How do I detect when an iframe is loaded?