Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it posible to have a button that 3

Status
Not open for further replies.

01310564

Programmer
Oct 9, 2003
96
0
0
GB
Is it posible to have a button that saves a web page on to the users hard drive also i want a button that will print the web page.

Anyone got any ideas.

Cheers,

Hugh
 
to print the page:
<input type=&quot;button&quot; value=&quot;Print&quot; onclick=&quot;window.print()&quot;>



as for saving:(it will work only in IE)
<input type=&quot;button&quot; value=&quot;Print&quot; onclick=&quot;document.execCommand(&quot;SaveAs&quot;);return false;&quot;>

Known is handfull, Unknown is worldfull
 
&quot;as for saving:(it will work only in IE)
<input type=&quot;button&quot; value=&quot;Print&quot; onclick=&quot;document.execCommand(&quot;SaveAs&quot;);return false;&quot;> &quot;

I've been looking for that for weeks!! Thanks! * for u from me [thumbsup2]
 
Thank you vbkris

That was very helpfull but how do i get it to save or print a diffrent frame?

Cheers,

Hugh
 
it must be:
parent.Framename.execCommand(&quot;SaveAs&quot;)

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top