Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
87
rated 0 times [  94] [ 7]  / answers: 1 / hits: 25332  / 12 Years ago, tue, april 17, 2012, 12:00:00

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?


More From » asp.net

 Answers
14

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>

[#86192] Monday, April 16, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
devonw

Total Points: 311
Total Questions: 116
Total Answers: 111

Location: Senegal
Member since Fri, Aug 21, 2020
4 Years ago
;