I want to add a JavaScript snippet into an existing iFrame in the page using jQuery. I have the following code...
Code:
content = \"
As the iframe runs as it's own window, you will have to also inject the import of the jquery.js file.
window
EDIT: So I played with this a bit more and here is what I came up with.
HTML
JS
$("#frame").attr( "src", "data:text/html;charset=utf-8," + "" + "" + "Test" + "