Log in

View Full Version : download web page button



candice
09-11-2008, 09:50 AM
Hi,

I'd like to place a download button on my web page (just like a print button), to make the content (but not php code for example) downloadable. Could anyone give me some advice or tips? Or maybe there's a javascript that can do this?

thanks a lot!

candice

Nile
09-11-2008, 12:11 PM
<button onClick="window.print()">Print Page</button>

Should work.

magicyte
09-12-2008, 02:44 AM
Candice, it wouldn't be easy to program something like what you want (sounds bogus, I know), but I think you should just print the page, like Nile said. You probably know how to code, right? Well, if you do, simply take the HTML code of the page and place it in a textarea. They can then print that.

-magicyte

candice
09-15-2008, 08:07 AM
Thanks for reply :)
I'll stick to the print button then :P