By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,718 Members | 1,220 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,718 IT Pros & Developers. It's quick & easy.

Save screen to a file

P: n/a
Ken
How do I use JavaScript to save a webpage (screen) to a file?

Perhaps a Mhtml?

Thanks for the help.

Ken
Jun 27 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Apr 21, 4:20 pm, "Ken" <d...@wi.rr.comwrote:
How do I use JavaScript to save a webpage (screen) to a file?
Use File -Save As or equivalent on your browser.

There is no general solution that will save the current web page to a
local file using javascript. There are browser-specific methods that
work in certain environments if configured appropriately, however all
the ones I know of present the Save As dialogue so are no better than
pressing Cmd + S (or equivalent).

There are also browser plug-ins or add-ons that will do the job
(again, they are browser-specific).
--
Rob
Jun 27 '08 #2

P: n/a
On 21 apr, 08:20, "Ken" <d...@wi.rr.comwrote:
How do I use JavaScript to save a webpage (screen) to a file?

Perhaps a Mhtml?
MHTML is poorly standardized. You could use a zip-file; that is always
offered with a "Save As"-dialog. It's also automatically unzipped on
recent Windows versions.

--
Bart
Jun 27 '08 #3

P: n/a
Bart Van der Donck wrote:
On 21 apr, 08:20, "Ken" <d...@wi.rr.comwrote:
>How do I use JavaScript to save a webpage (screen) to a file?

Perhaps a Mhtml?

MHTML is poorly standardized.
It is well standardized but poorly implemented.

http://en.wikipedia.org/wiki/MHTML
You could use a zip-file; that is always offered with a "Save As"-dialog.
Not here. Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; [...]; .NET
CLR 1.1.4322; .NET CLR 2.0.50727)
It's also automatically unzipped on recent Windows versions.
So Windows XP SP2 is not recent?
PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
Jun 27 '08 #4

P: n/a
Thomas 'PointedEars' Lahn wrote:
Bart Van der Donck wrote:
>MHTML is poorly standardized.

It is well standardized but poorly implemented.
http://en.wikipedia.org/wiki/MHTML
MHTML is not well standardized at all. It isn't even a standard, only
a *proposed* standard. From your link:

| MHTML is a proposed standard, circulated in a revised
| edition in 1999 as RFC 2557.
>You could use a zip-file; that is always offered with a "Save As"-dialog.

Not here. *Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; [...]; .NET
CLR 1.1.4322; .NET CLR 2.0.50727)
Strange. How are zip-files from internet offered on your PC then ?
Automatically downloaded ? Automatically unzipped ? A suspicious
firewall ? etc.
>It's also automatically unzipped on recent Windows versions.

So Windows XP SP2 is not recent?
Windows XP and Vista are shipped with a default unzip utility on
board. This even goes back to ME and Plus!98:
http://support.microsoft.com/kb/259177

--
Bart
Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.