javascript - Tabindex is not working in ie 7 -


I have used a tabandex in my code, firefox, ip8, everything works very well in safari But it is not working properly i.e. 7, when i used a tab index in id7, it came in two input files and then it came back to the index;

Example:

  & lt; Div tabindex = 1 & gt; & Lt; One onclick = "slide_down ()" style = "cursor: pointer, width: 160px; padding-bottom: 10px;" & Gt; Sample Links & lt; / A & gt; & Lt; / Div & gt; & Lt; Div tabindex = 2 & gt; & Lt; One onclick = "slide_down ()" style = "cursor: pointer, width: 160px; padding-bottom: 10px;" & Gt; Sample Link 1 & lt; / A & gt; & Lt; / Div & gt; & Lt; Div tabindex = 3 & gt; & Lt; One onclick = "slide_down ()" style = "cursor: pointer, width: 160px; padding-bottom: 10px;" & Gt; Sample Link 2 & lt; / A & gt; & Lt; / Div & gt;  

Thanks

Tabintax in any element as IE5 It is possible . All current browsers now implement this behavior, and your original example will work fine in Opera, Firefox and WebKit.

But I do not know why your example does not work in IE7, because it should change the link is a practical solution and it will fix it, but it should not be necessary.

You can try to apply the program again using this unplanned property name (which is required for older IE versions). For most set-attribute values):

  myDiv.setAttribute ('tabIndex', '0');  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -