Print functin in javascript

by Ranganathan 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();
}
931
like
0
dislike
0
mail
flag

You must LOGIN to add comments