Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello friends.
The task is next. I have a site that allows to click on some pictures or hyperlinks that are on the page and then immediately see a new page with the desired information. When you click on an active hyperlink or an icon the request is sent to the server and you have a new page downloaded and you make a step down in the tree structure of the site.

I want to develop algorithm that allows to save the current page and all the pages linked to it. These saved files of HTML type should perform without the internet...
I want to develop it via JavaScript.

Save As dialog do not let to Save the page and save the linked pages also.Thus the mechanisms of a browser do not help.

Any help will be appreciated. Thank you in advance.
Posted
Updated 1-Jun-15 11:48am
v2
Comments
Sergey Alexandrovich Kryukov 1-Jun-15 13:25pm    
This is quite possible, but why JavaScript? Do you mean JavaScript embedded in a browser, or something else (WSH, for example)?

JavaScript programming is more difficult than with high-level languages. Besides, it does not have direct access to the local system. JavaScript file I/O is quite limited, due to safety reasons.
Anyway, you can always modify your anchor to the local-file URI; what's the problem? This is not a simple work; so, what help would you expect? You need to ask some real question; "how can I..." is not such a question; it does not allow to figure out what to help with, except writing the whole solution for you.
—SA
Dzianis Igaravich Leanenka 2-Jun-15 9:28am    
Thank you for your help.
I will write a real "How can I ..." question if I know how to implement the written before.
But now I need a hint how to do this, not a full solution. But thank you once again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900