Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
171
rated 0 times [  172] [ 1]  / answers: 1 / hits: 54875  / 15 Years ago, sat, april 4, 2009, 12:00:00

I met a problem about HTML rendering.



In dir=rtl document of IE7, when JavaScript tries to set focus to a DIV element(with oElement.focus() method), the rendering turns to mess. The context is very complicated, so I suppose the easiest fix is to make the DIV unfocusable?



Is there any way to make a DIV not be focused?


More From » html

 Answers
2

The <div> should not be capable of receiving focus unless you have added tabIndex.



If you have added tabIndex, you should remove it by



document.getElementById(yourElement).removeAttribute(tabIndex);

[#99747] Tuesday, March 31, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bradley

Total Points: 555
Total Questions: 102
Total Answers: 99

Location: Tajikistan
Member since Fri, Nov 27, 2020
4 Years ago
;