Saving html or images contents

Discussion in 'JavaScript' started by Shamsher Nawaz, Nov 9, 2006.

  1. #1
    Is there any way to save html.src or image.src to local computer without showing it on browser.
     
    Shamsher Nawaz, Nov 9, 2006 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Please explain yourself better. You want to save files on the client's computer without asking him?
     
    nico_swd, Nov 9, 2006 IP
  3. Shamsher Nawaz

    Shamsher Nawaz Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Not exectly but I want to make a button which perform as the browser menu Item "File --> Save As". Want the save html source and all its images.
     
    Shamsher Nawaz, Nov 9, 2006 IP
  4. SoKickIt

    SoKickIt Active Member

    Messages:
    305
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    70
    #4
    <input type="button" value="Save" onclick="document.execCommand('SaveAs');" />
    HTML:
    It works in IE only...
     
    SoKickIt, Nov 9, 2006 IP