Posted on: 7/12/2013 5:05:12 PM | Views : 251

Hi,
I am show window using window.open() using javascript to print the page.
But when I close the window before the print dialog is opened it's throwing the following javascript error:
 Line: 296
Error: Function expected
can any one let me know how to resove this?

The following is my code:

function Print() { var elem = $('#printable'); if((elem != null) && (elem != 'undefined')) { var a = window.open('', '', 'width=300,height=300');
a.document.open("text/html");
a.document.write($(elem).html()); a.document.close(); a.print();
a.close(); }



Thanks and Regards,
Anand
...

Go to the complete details ...