Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to get all content of webpage which first i navigate link or just define link and after save all content of webpage in one varible...plz help me out
Posted
Comments
Sergey Alexandrovich Kryukov 15-Nov-14 2:04am    
I wonder why? And what do you mean by "content". DOM? Test? What? What do you mean by "save"? This last question is not that trivial as you may think.
What is the source of this page data? a current page or something else?
—SA
Bhoraniya Saalim 15-Nov-14 3:08am    
I want content(DOM) and Store all the text of Webpage

1 solution

Please see my comment to the question.

Now, even if the following is not an answer, it would be a good food for thought:
JavaScript
// suppose you have some browser window object:
myWindow = // ...
// it could be a current window, or any other one
// then, all your content can be save in a variable:
myPageContent = myWindow.document; :-)
// if you window is the object of your current window,
// you don't need reference this window:
myCurrentPageContent = document; :-)
// "document" is the reference to some DOM object,
// comprehensively represented the page content

Perhaps you need something different. Too bad you did not really explain what you are trying to achieve. Then please clarify, but first, think at this simple code fragment. :-)

—SA
 
Share this answer
 

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