Home > Web Front-end > JS Tutorial > ie focus bug solution_javascript skills

ie focus bug solution_javascript skills

WBOY
Release: 2016-05-16 18:47:07
Original
1314 people have browsed it

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



Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template