I have an HTML page containing an iframe and I am trying to write functions on links in the iframe. The functions will make changes in the HTML page...
The following script works on the first link that is clicked in the iframe. But when the iframe chages "src" the function will not work any more.
How can I make it work even if the src of the iframe is changed?
(all pages are on the same domain)
<script type="text/javascript">
$("iframe").contents().find("a").click(function() {
alert('Load was performed.');
});
</script>