急诊!为什么脚本中xxx.style出错:不是对象?
<iframe id=l width=123 height=34 style="display:none"></iframe>
<script>
function showlogin(){
l.location.href="login.asp"
l.style.display="" ///这行报错
}
</script>
<a href=# onclick="javascript:showlogin()">点击登陆</a>
这是我的代码,可点击后ie报告l.style不是对象!我原来一直这样用的啊!