返回首页
在ie6下面如果一个元素是隐藏的那么将不能调用它的foucs方法~
1 2 3 4 5 6 7 8
<html> <body> <input type="text" id="test" style="display:none;"/> </body> </html> <script> document.getElementById('test').focus(); </script>
Published 2008年08月14日 & Filed in web dev
Tags: javascript
Write comment - Trackback