code_junkie

Question regarding iframe and redirection

Nov 11th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <title>test of iframe</title>
  4. <iframe width="500" height="400" src="http://example.net/">
  5. <p><a href="http://example.net/">See The Example Site</a></p>
  6. </iframe>
  7. <script type="text/javascript">
  8. window.onload = function () {
  9. document.getElementsByTagName('iframe')[0].onload = function () {
  10. window.alert('Document loaded in frame');
  11. }
  12. }
  13. </script>
Add Comment
Please, Sign In to add comment