Home > Web Front-end > JS Tutorial > Input input box mouse focus prompt information_javascript skills

Input input box mouse focus prompt information_javascript skills

WBOY
Release: 2016-05-16 16:09:08
Original
1670 people have browsed it

Question as title:

When the mouse clicks into the input box (input), the input box prompt disappears. When the mouse is moved away, the input box prompt appears. As shown in the picture:

How to do it:

Copy code The code is as follows:



Pay attention to the onblur and onfocus attributes of input. There are also simple if judgments. Very convenient and practical.

The above is all the content described in this article, I hope you all like it.

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