判断一个对象是否存在

 var obj=document.all("str1");
if (obj)
 {
    alert("存在");
}

posted on 2006-10-27 11:53  asdsd  阅读(188)  评论(0编辑  收藏  举报

导航