10
Aug/09
0

Viewing page source after JS/AJAX changes

Ever needed to look at the source of a web page after it has been modified via JS/AJAX? In most browsers, viewing source on the page will show you the HTML as it was downloaded from the server before any changes were made “scriptually” . To view the source of the page as it is being currently displayed do the following:
When you want to view the source type

javascript:'<xmp>'+window.document.body.parentNode.innerHTML+'</xmp>'

into the address bar and hit enter. For ease of use, you can add a bookmark to the above address.

This works in both IE and FF.

Cheers :)

Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.