Safari print error

Hi    I’m trying to use  window.print() in safari.  First time it works. But if I click cancel in print popup and try to print again I get following message: This webpage is trying to print. Do you want to print this webpage?  If I click yes it just shows blank screen.    I tried this but id didn’t solve my problem: document.execCommand('print', false, null). Is there any solution for this?   Regards, Anahit 
1 answers

This probably helps.