Home  >  Article  >  Web Front-end  >  ie focus bug solution_javascript skills

ie focus bug solution_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:47:071263browse

If you put input.focus() in a setTimeout to delay execution, you can get focus.

Copy code The code is as follows:


setTimeout


1. Not used< code>setTimeout




2. Use setTimeout




3. Another example



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn