How do you clear the focus in javascript?

前端 未结 7 1818
遥遥无期
遥遥无期 2020-11-28 04:45

I know this shouldn\'t be that hard, but I couldn\'t find the answer on Google.

I want to execute a piece of javascript that will clear the focus from whatever eleme

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 05:11

    dummyElem.focus() where dummyElem is a hidden object (e.g. has negative zIndex)?

提交回复
热议问题