Javasript - save a web page's source code

Hello all

How do I create a JavaScript script to save a web page’s source code to a file? :rolleyes:

Example: I will go to a website, it automatically from the web page’s source code will be saved to a file

Please guidance, sorry still a newbie

Yes, PHP is an option. Do a google search for “Web scrapping in PHP” you will find plently of tutorials on that subject.

Thank you very much

then how can I do?
do I have to do this using php or other scripts?

You wouldn’t do that through Javascript. You would do it through your server side language.