Iframe onload Example 5

This example dynamically creates an iframe and assigns a function to its onload event handler for non-IE browsers and assigned an event handler to onreadystatechange for IE.. Non-IE browsers will display an alert when the frame is completely loaded. The local iframe loads a file with the same domain as the containing page while the foreign iframe loads search.yahoo.com.