Debugging Ajax

I stumbled upon a useful little tip for examining the current html of a web page. This is very useful when the current state of a dynamic page needs to be looked at.
Basically, to look at the current html of a web page type the following into the address bar :-
javascript:'<xmp>’ + window.document.body.outerHTML + ‘</xmp>’
This can be done with firefox via the View Generated Source extension, so this is just an IE hack really.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s