Reputation: 113
I have a link in a page which I am using for print the page using window.print(), I want reason why this is not showing preview in Chrome until unless I Add return false in after window.print().
Upvotes: 1
Views: 318
Reputation: 79032
return false;
prevents the default action taken by the browser. In a link's case, it prevents the link from being followed.
Upvotes: 1