PDA

View Full Version : saveAs webPage via javascript ?



vmars316
05-17-2010, 09:35 PM
Greetings;

Occassionally, I want to "rightMouseClick,
then SaveAs", to capture a given webPage.

Can this 'SaveAs' behavior be generated via javaScript code?

Thanks...vmars316

djr33
05-17-2010, 11:56 PM
What is the overall goal for this? The answer is probably not, but perhaps there's another way around it.

The main reason this doesn't work is that it's a security risk, so most browsers will block it. Additionally I've never heard of that kind of Javascript command, so it simply may not exist. And even if it does it might vary by browser and only be supported in a few.

vmars316
05-18-2010, 03:41 AM
google: javaScript SaveAs page
Sorry, I should have done this 1st.
Thanks...vmars