Reputation: 12753
I have a tool which generates some html+javascript code, it shows the code in one div and then shows a preview of what the code displays like in an iframe.
Here's a quick fiddle which shows this... http://jsfiddle.net/Zv4zU/
But the javascript within the iframe never runs even though if you inspect the iframe the javascript is definitely in there. How can I get the javascript to run by itself?
Upvotes: 3
Views: 2851