javascript - After click on print button.Modal window is not closing/not only the modal it will stuck my webpage -


below code.after printing invoice modal window not close.i have used below commented commands also.but not working.is there solution this.i'm using meteor

var printcontents = document.getelementbyid('myinvoicetableprint').innerhtml;  var originalcontents = document.body.innerhtml;  document.body.innerhtml = printcontents;  window.print(); document.body.innerhtml = originalcontents; location.reload();  // window.close(); console.log("print state");  // $('#mymodal').modal('toggle');  // $('#mymodal').modal('hide');  // $('.modal-backdrop').remove(); 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -