Print functin in javascript
by Ranganathan[ Edit ] 2012-08-27 21:48:33
Can you add parameters inside a print() function in javascript
function printIt(printThis) {
var win = window.open();
self.focus();
win.document.open();
win.document.write('<'+'html'+'><'+'body'+'>');
win.document.write(printThis);
win.document.write('<'+'/body'+'><'+'/html'+'>');
win.document.close();
win.print();
win.close();
}