Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript print blocked by chrome

I'm trying to run a javascript window.print() from chrome. It prints the first time but then subsequent calls (within a minute of the first call) fail. The chrome log states "Ignoring too frequent calls to print()."

     window.print();
 setInterval(function() {
     window.print();
 }, 5000);

Can't find a way around this issue. Any ideas?

Thanks in advance

like image 894
Oppdal Avatar asked Mar 12 '11 13:03

Oppdal


1 Answers

It appears to be a design decision rather than a bug. Getting around it will probably be pretty hard.

like image 94
code_burgar Avatar answered Sep 22 '22 20:09

code_burgar