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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

node.js - Node - Passport Auth - Authed Post Route hangs on form submission -

Does Firefox offer AppleScript support to get URL of windows? -