Home > Web Front-end > JS Tutorial > Friendly tips when entering text boxes in javascript_form effects

Friendly tips when entering text boxes in javascript_form effects

WBOY
Release: 2016-05-16 18:39:35
Original
1446 people have browsed it

The following code implements a prompt message for what to input when the user stays in the text input box, improving user engagement.

Before entering content, the display is as shown in Figure 1

Picture 1

When the username text box is focused, the effect is as shown in Figure 2

Picture 2

When the password text box is focused, the effect is as shown in Figure 3

Figure 3


The source code of the demonstration is as follows:
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