Skip to content

Instantly share code, notes, and snippets.

@setkyar
Created January 28, 2015 10:29
Show Gist options
  • Save setkyar/061a503dac0d173cd40f to your computer and use it in GitHub Desktop.
Save setkyar/061a503dac0d173cd40f to your computer and use it in GitHub Desktop.
Print Specific Element
function printout() {
var newWindow = window.open();
newWindow.document.write(document.getElementById("out").innerHTML);
newWindow.print();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment