Javascript window.print() in chrome, closing new window or tab instead of cancelling print leaves javascript blocked in parent window
It looks like the problem had been resolved with the latest Chrome update… I’m running the Chrome Version 36.0.1964.4 dev-m. I was limited too warning the user from closing print preview window by doing the following: if(navigator.userAgent.toLowerCase().indexOf(‘chrome’) > -1){ // Chrome Browser Detected? window.PPClose = false; // Clear Close Flag window.onbeforeunload = function(){ // Before … Read more