Yay! Programmer art!
Yay! Programmer art!

Seeing Generated Source

One of the nice features in FireFox with the Web Development addon is the ability to see the generated source after you have done DOM manipulations.  Unfortunately it isn’t as easy in IE, but here is a tip that helps me.  Just type this in the address bar of the page you’d like to see the generated source.


javascript:alert(document.body.innerHTML);

And if it gets to long for an alert window you can also try this


javascript:document.write(document.body.innerHTML.replace(/</g,'&lt;'));

It comes in handy now and then.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

For spam detection purposes, please copy the number 2238 + 1 to the field below: