¡@

Home 

javascript Programming Glossary: nextavailabletime

JavaScript print blocked by Chrome, Workaround?

http://stackoverflow.com/questions/10401454/javascript-print-blocked-by-chrome-workaround

realPrintFunc window.print var interval 2500 2.5 secs var nextAvailableTime new Date when we can safely print again overwrite window.print.. if the next available time is in the past print now if now nextAvailableTime realPrintFunc nextAvailableTime now interval else print.. past print now if now nextAvailableTime realPrintFunc nextAvailableTime now interval else print when next available setTimeout realPrintFunc..