开发者

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

开发者 https://www.devze.com 2023-03-24 05:20 出处:网络
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 adde

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 adde开发者_运维技巧d. I use the latest version of chrome, and I do "View" -> "Page Source".

Seeing changes in the HTML would really help for debugging!


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


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消