For design purposes, I want to copy the exact HTML that is created by some JavaScript after the page loads. Firebug shows me what's going on, of course, but I really just want some static text that I can copy and paste at will.
For design purposes, I want to copy the exact HTML that is created by some JavaScript after the page loads. Firebug shows me what's going on, of course, but I really just want some static text that I can copy and paste at will.
Share Improve this question edited Aug 25, 2015 at 1:44 Mogsdad 45.7k21 gold badges162 silver badges285 bronze badges asked Jun 5, 2009 at 17:43 riversrivers 4655 silver badges7 bronze badges6 Answers
Reset to default 10The "View Source" menu of the Web Developer Firefox Add-on offers the "View Generated Source" tool.
That can be done with the innerHTML
or outerHTML
properties. Or just in Firefox, select the part you want the source code from and select View Selection Source from the context menu.
You can copy the HTML out of firebug (or the IE8 developer toolset) into your favourite text editor.
In Google Chrome, choose Inspect Element, then you can right click and "Copy as HTML"
For IE/firefox, following bookmarklet works: https://www.squarefree.com/bookmarklets/webdevel.html#generated_source
For google chrome, right click on any element and choose 'Inspect Element' option. It will show the position of element in DOM. Now right click on '
For opera, right click on any element and choose 'Inspect element'. This will start opera dragonfly. In dragonfly window, Click on 'Expand the DOM tree' button (first button with a dot and two arrows) and then 'export the current DOM panel' button (second button)
In IE, open the webpage and press F12 to open developer tools. Click View->Source->DOM(page) or shortcut Ctrl+Shift+G in developer tools window. This will show the complete currently visible DOM.
For firefox, alternative is Web developer toolbar extension and choose View Source->View Generated source in it.
you could also write a perl script with the Library mechanize.