iframe onchange?

  • 2
  • Question
  • Updated 8 years ago
I have an iframe and I don't want the user to go somewhere else from the links inside the frame. The page I am framing is not in my control so I can't change it.
So what I want to do is add an event handler that detects if the iframe's src has changed.
And when it does, it calls a javascript function that forces the frame back to the original page. What I don't know is how to detect this change. Iframes sadly can't use the onchange handler like forms can, so I am officially stuck.
Please Help?
Photo of Kevin


  • 475 Posts
  • 29 Reply Likes
  • annoyed

Posted 9 years ago

  • 2
Photo of Sanja


  • 10698 Posts
  • 495 Reply Likes
Hello Kevin

This is a bit out of my league I'm afraid. I hope that someone on the forum may be able to come up with a suggestion for you.
Photo of spaceranger.edwards


  • 7 Posts
  • 0 Reply Likes
you can't do event handler's on yola; if you know a way please share but from my knowledge you can't