Here i am printing a page through window.print() event and before printing i need to save this page for that i need to hardcore a file name in this event.
<a href="_javascript:window.print()">
<img class="noPrint" src="Images/Print_icon.png" border="0"></a>
Any suggestion?
You can change the title via document.title
:
<a href="someRealUrl" onclick="document.title='My new title'; window.print(); return false;"><img class="noPrint" src="Images/Print_icon.png" border="0"></a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With