Reputation: 1400
Is there any way of getting the source code of an HTML browser-page that is showing when i click inspect element(in chrome of firefox) and put it in a notepad(automatically) or maybe accessing it automatically somehow.
I do not want the original sourcecode but the one that is generated after all the javascripts have already run.
I would like to use the code afterwards in another web page and parse it...
later edit: i can actually click the html in the inspect element and click copy html but i need for a nother site to automatically acces this information because i will try reloading the site at regular intervals and need to constantly get the new html
Upvotes: 2
Views: 5547
Reputation: 1482
In Opera , Right Click -> click on Inspect Element -> right click on <html>
tag -> click on Edit Markup, from there you can copy the entire HTML code.
Edit -> In Oprea, right click on the page ->
click on Source ->
a new tab opens , in the menu bar of newly opened tab you have option 'Save'
, from that option you can save the html code as .html , .txt.
Hope this helps you.
Upvotes: 0
Reputation: 1793
press ctrl+u
then it will display source code of html page
then go to file menu and save it as html file
in your system. then you can open it in html or another editor like netbeans /dreamviewer/notepad
. I suggest you to open it in netbeans or dreamviewer will be better then open it in notped.
thanks.
Upvotes: 1
Reputation: 1105
You can use the web developer plugin for Firefox or Chrome. It gives you the generated source of a page.
Upvotes: 0
Reputation: 86097
With Firebug's HTML tab, you can right click on the element, and click "Copy HTML".
See also this post: how to get fully computed HTML (instead of source HTML)?
Upvotes: 2