Printing contents of a div using javascript

Guys this is a nice piece of code which has been tested in IE7 to print the contents of a div. I got this code from http://www.webdeveloper.com/forum/showthread.php?t=152798 While printing keep in mind that on the printed copy you will lose all css styles. <script type="text/javascript"><!– function ClickHereToPrint(){ try{ var oIframe = document.getElementById(’ifrmPrint’); var oContent = […]