if (document.getElementById) 
{
//..代码
}
这个我能理解if(document.getElementById("mydiv")),但是上面的我就不能理解了!什么时候为true,什么时候为false