Possible Duplicate:
document.all vs. document.getElementById
I'm refactoring some old code written by somebody else. And I came across the following snippet:
if (document.all || document.getElementById) {
...
}
When will the code within the if-statement be executed?
Thank you!