What is the best practice creating an iframe
HTML element using JavaScript?
var iframe = document.createElement("iframe");
iframe.setAttribute("sandbox", "")
iframe.setAttribute("src", url);
I faced the question while developing Firefox plugin, but usage is quite the same as developing a web page. I do not use jQuery.