I am building a Chrome Extension and I have a requirement to overlay a blob of html on top of a few websites. At the moment I am using a JQuery .Get to pull the
.Get
I use this code. It's only 3 lines of code and you don't need any jquery's garbage.
var iframe = document.createElement ('iframe'); iframe.src = chrome.extension.getURL ('iframe.html'); document.body.appendChild (iframe);