Harrisonm

All Online Tools

Below a collection of free online tools that I have been using for a while. I’ve found them useful and I hope that other users and developers find them useful too. http://beautifytools.com/Read more …

To Print Div

<script type=”text/javascript”> function PrintElem(elem) { Popup($(elem).html()); } function Popup(data) { var mywindow = window.open(”, ‘mydiv’, ‘height=400,width=600’); mywindow.document.write(‘<html><head><title>my div</title>’); /*optional stylesheet*/ //mywindow.document.write(‘<link rel=”stylesheet” href=”main.css” type=”text/css” />’); mywindow.document.write(‘</head><body >’); mywindow.document.write(data); mywindow.document.write(‘</body></html>’); mywindow.document.close(); // necessary for IE >= 10 mywindow.focus(); // necessary for IE >= 10 mywindow.print(); mywindow.close(); return true; } </script>Read more …