document["all"] == document.all
null
var supportAll = (document.all!=null) if (supportAll) { // Browser supports the all collection } else { // Do something else }