Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 587
Randomblue Avatar asked Jul 29 '11 04:07

Randomblue


2 Answers

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

like image 200
manubkk Avatar answered Oct 12 '22 00:10

manubkk


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

like image 28
Abhishek Bhatia Avatar answered Oct 11 '22 23:10

Abhishek Bhatia