Javascript not executed when iframe added to document?
Posted
by StackedCrooked
on Stack Overflow
See other posts from Stack Overflow
or by StackedCrooked
Published on 2010-05-05T20:40:16Z
Indexed on
2010/05/05
20:48 UTC
Read the original article
Hit count: 202
html
|JavaScript
It seems that adding an iframe to my html document prevents Javascript from being executed. In the following code sample the alert will not be shown:
<html>
<body>
<iframe src="http://www.google.com" />
<script type="text/javascript">
alert("test");
</script>
</body>
</html>
What am I doing wrong?
© Stack Overflow or respective owner