vurquee
vurquee

Reputation: 491

Show HTML from JS in the source code

Is it possible to show on page source ( ctrl+U ) the HTML elements I've added in JavaScript and jQuery codes?

Upvotes: 0

Views: 99

Answers (4)

Ahmed Masud
Ahmed Masud

Reputation: 22412

Depending on the browser (i like chrome / firefox / safari for this) you want to look at developer tools. In firefox you can use firebug, in chrome it's Developer Tools and in Safari you have to turn on Developer menu through preferences. In all three cases, you want to look at the DOM inspector.

Upvotes: 0

ThiefMaster
ThiefMaster

Reputation: 318698

No, but ever modern browser has a way/extension to see the current sourcecode (actually, the DOM tree), i.e. including everything done by JavaScript.

Upvotes: 0

user898741
user898741

Reputation:

Nope, you just can see it on you firebug, developer tools, etc...

Upvotes: 2

Felix Kling
Felix Kling

Reputation: 817030

No.

The page source will always show you the HTML retrieved from the server.

Inspect the generated DOM tree instead, e.g. with Firebug (Firefox) or the Developer Tools (Chrome, Safari).

Upvotes: 5

Related Questions