I want to print a content of a html div and currently i am using this code.
<div id="content">
</div>
var printContents = document.getElementById("content").innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
printing is working correctly. But after that my other functions are stop responding. I'm using angular.js.
any idea?