解决FF中的bug:JavaScript focus() throws "Permission denied to get property XULElement.selectedIndex"

JavaScript focus() throws "Permission denied to get property XULElement.selectedIndex" 这个Bug通常在focus()方法被调用时发生,避免这个bug的发生,可把input控件的autocomplete属性设为false。

Javascript代码:

Code

C#代码:

Code

 

 PS:若禁用autocomplete属性后,input文本框还有智能提示,请Ctrl + Shift + Delete,清除FF中的Private Data。

posted @ 2009-01-09 11:29  Jailu  阅读(1038)  评论(0编辑  收藏  举报