Save Page As Button on page

Hi,
having a small problem, need to make PrintPage and SavePageAs
buttons on the page. The first one is easy:
<input type="button" id="btnPrint" onclick="window.print( )" value="Print">
Cant figure out how to make SavePageAs...