Is there a way to make it so that if the page inside an iframe is not the src, then it will change the parent page to the url the iframe is trying to go to? Something like this:
<script>
function redir() {
if(document.getElementById("myiframe").src != 'http://www.google.com'){
window.location = document.getElementById("myiframe").location
}
}
</script>
<iframe src="http://www.google.com/" id="google" onload="redir()"></iframe>