What options exist for opening a document fragment in a new tab or window. Which of them are the most compatible with the browser and which are the most convenient for the user?
var frag = document.createDocumentFragment();
var div = $("<div>").addClass("Printable");
div[0].innerHTML = doc.body.innerHTML;
frag.appendChild(div[0]);
openIt(frag);
A snippet contains a reformatted subset of a page that is ready for printing. A.
I would like it to naturally open through some <link>or <a>look like any friendly html link, and then quietly open the annoying popup through window.open.
source
share