Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SAVE()

0 views
Skip to first unread message

Youss

unread,
Nov 22, 2001, 5:30:44 AM11/22/01
to
Hello,

is there a script to save the content of a web page to disk? something in
the way of a print() to print the current window!

Thanks

Joe Fawcett

unread,
Nov 22, 2001, 6:39:04 AM11/22/01
to
"Youss" <ybenh...@ihs-es.be> wrote in message
news:Ou560D0cBHA.2128@tkmsftngp03...
Should be able to do this:
window.document.execCommand("SaveAs");

Joe


Dan

unread,
Nov 22, 2001, 8:40:58 AM11/22/01
to
Well, window.print() works for printing the current window page, or
document.execCommand('Print'), for saving,
document.execCommand('SaveAs',false,'SOMEFILENAME.SOMEEXTENSION'), where
SOMEEXTENSION would usually take a .htm or .html or .txt, it will popup the
Save As browser window to the user with the filename already set and the
correct file type selected.

Dan


"Youss" <ybenh...@ihs-es.be> wrote in message
news:Ou560D0cBHA.2128@tkmsftngp03...

0 new messages