<!DOCTYPE html> <html> <head> <title></title> <script> function on_iframe_load() { document.getElementById('iframe_a').onload = function() { alert('Thanks for the visit!'); }; } </script> </head> <body> <iframe name="iframe_a" id="iframe_a"></iframe> <a href="http://www.example.com/" target="iframe_a" onclick="on_iframe_load();">Go!</a> </body> </html>
document.getElementById('iframe_a').contentWindow.onload = function() { alert('Thanks for the visit!'); };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)