Save Page As Web Page

  • Thread starter Thread starter SMG
  • Start date Start date
S

SMG

Hi All,
On my website I want to provide a link with 'Save Web Page as HTML"
I wrote the following code for the same and it works

" document.execCommand('SaveAs','1','TEST'); "

But it saves page content(HTML Code) and does not save images on the page
(as I had given relative path for the images in coding).


How Do I make my page save the content and images as well.

Regards,
Shailesh G
 
In the browser, use File|Save As...

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
Buddy I want it through a JavaScript command.

In the browser, use File|Save As...

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.
 
If only it were that easy, I'm sure Kevin would have pointed you in
the right direction!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top