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:
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.