document.getElementsByTagName(\"*\")
works for IE/Firefox/Opera, But doesn\'t work for Chrome and Safari.
document.all
works for IE/Chrom/S
While I would not encourage you to do a document.all because it implies you are doing a lot of client-side parsing that is just not needed I do understand there is a lot of legacy stuff out there etc. I wanted to post a little extension of my thoughts on a wrapper method for document.all.
document.all = document.all || function(){
return document.getElementsByTagName("*");
};
Of course this assumes you have a getElementsByTagName function, which should be the case.