Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Refresh page after dialoge closes

window.onbeforeprint = function() {
    console.log('This will be called before the user prints.');
};
window.onafterprint = function() {
    console.log('This will be called after the user prints');  
    window.location.reload()
};
Source by www.tjvantoll.com #
 
PREVIOUS NEXT
Tagged: #Refresh #page #dialoge #closes
ADD COMMENT
Topic
Name
6+2 =