saving Chrome html page

3,796 views
Skip to first unread message

Glaser, Gina

unread,
Jul 6, 2010, 7:39:25 PM7/6/10
to chromi...@chromium.org

I am trying to get a webpage in the Chrome browser to save automatically. I modified the javascript to add a button with "document.execCommand('SaveAs', false, 'test.html')", but it seems that execCommand isn't supported in Chrome. Are there any other ways I could get the webpage to save from the javascript (without manually clicking 'save page as" from the dropdown)?

 

Thank you,

Gina

Evan Martin

unread,
Jul 7, 2010, 12:24:56 PM7/7/10
to g-gl...@ti.com, chromi...@chromium.org
We do support execCommand.

http://stackoverflow.com/questions/833015/does-execcommand-saveas-work-in-firefox
indicates that the "SaveAs" parameter is an Internet Explorer-only extension.

That stackoverflow URL discusses alternative ideas.

> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
>

Nguyễn Kiên

unread,
Jan 26, 2014, 8:08:39 PM1/26/14
to chromi...@chromium.org
Reply all
Reply to author
Forward
0 new messages