Results 1 to 4 of 4

Thread: download web page button

  1. #1
    Join Date
    Sep 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default download web page button

    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

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Code:
    <button onClick="window.print()">Print Page</button>
    Should work.
    Jeremy | jfein.net

  3. #3
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    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

  4. #4
    Join Date
    Sep 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for reply
    I'll stick to the print button then :P

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •