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.
+3
A:
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.
Gumbo
2009-06-05 17:46:02
+3
A:
You can copy the HTML out of firebug (or the IE8 developer toolset) into your favourite text editor.
DDaviesBrackett
2009-06-05 17:46:54
+6
A:
The "View Source" menu of the Web Developer Firefox Add-on offers the "View Generated Source" tool.
lance
2009-06-05 17:48:53
"View Generated Source" is exactly what I was looking for! Thanks lance!
baxter
2009-06-05 18:19:32
If Web Developer could wear a cape, I'm convinced it would rescue people from falling buildings.
lance
2009-06-05 18:21:04
+1
A:
In Google Chrome, choose Inspect Element, then you can right click and "Copy as HTML"
plutext
2010-04-02 00:09:13