Randomblue
Randomblue

Reputation: 116283

Seeing HTML source changes after javascript has acted upon it, in Chrome

I have an HTML document with inline javascript which adds some <div> elements. The elements appear on the screen, but I can't see any change in the HTML source after the elements have been added. I use the latest version of chrome, and I do "View" -> "Page Source".

Seeing changes in the HTML would really help for debugging!

Upvotes: 16

Views: 10505

Answers (3)

Abhishek Bhatia
Abhishek Bhatia

Reputation: 716

Use firebug when using Firefox
For Chrome there is built in tool(use Ctrl+Shift+I)

Upvotes: 1

Rex
Rex

Reputation: 69

Use Firefox, install web developer and choose "view source"=>"view generated source"

Upvotes: -1

manubkk
manubkk

Reputation: 1488

Right-click on the element and select "inspect element"

Upvotes: 22

Related Questions