how to make a DIV unfocusable?

前端 未结 5 1617
情深已故
情深已故 2021-02-07 10:16

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 tu

5条回答
  •  再見小時候
    2021-02-07 10:43

    The

    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");
    

提交回复
热议问题