ie focus bug

IE中,新创建的input没有如预期的获得焦点。

如果把input.focus()放在一个setTimeout中延时执行,则就可以获得焦点。

Code
posted @ 2009-09-02 20:51  朝夕  阅读(333)  评论(0编辑  收藏  举报