window.print() refreshes page in iframe when I click cancel
<p>I have a an iframe inside my website with the following jquery code in it:</p>

<pre><code>$(document).ready(function() {

    $('#print_button').click(function() {
        window.print();
    });

});
</code></pre>

<p>The problem: When I click the print button, the print dialog opens correctly. Printing works correctly as well. But when I click the cancel button in the print dialog it closes but it also refreshes content in the iframe.</p>

<p>How can I avoid this behaviour?</p>
