javascript - how to reload page after take printout using jquery? -
below function used take printout of div reloading of page not working after printing(links , jquery ui tabs not working)
function printdiv(id) { var divelements = document.getelementbyid(id).innerhtml; var oldpage = document.body.innerhtml; document.body.innerhtml = "<html><head><title></title></head><body>" + divelements + "</body>"; window.print(); document.body.innerhtml = oldpage; }
use code:
location.reload()
Comments
Post a Comment