Today, Jordan and I were trying to view a piece of rendered source in IE that was put into a div via Ajax. I Googled “IE View Ajax source” and figured I might find an add-in to IE or something that would accomplish this. The first link I found said all that you needed to view this was paste the following code into the address bar in IE:

javascript:'' + window.document.body.outerHTML+ ''

Or you can use this bookmarklet (Drag to links bar or add to Favorites): View Generated Source.

I know, I didn’t believe it would work either but it does work. The HTML that it outputs though is very, very scary.

The page where I found this is here: http://ericappel.net/blog/2006/10/03/ViewHTMLSourceGeneratedByAJAX.aspx

In addition, apparently Microsoft makes a developer toolbar for IE (7 not 8) that you can download as well. Microsoft Developer Toolbar.