Home > Web Front-end > JS Tutorial > Problems with displaying and hiding text boxes and hidden layers when clicking on a blank area in js_javascript skills

Problems with displaying and hiding text boxes and hidden layers when clicking on a blank area in js_javascript skills

WBOY
Release: 2016-05-16 17:24:18
Original
863 people have browsed it

When the text box gets focus, a floating layer appears below the text box.

Hide the floating layer when the user clicks on a blank space on the web page except the text box and floating layer.

When the user clicks on the floating layer, change the value of the text box.

Copy code The code is as follows:

="Content-Type" content="text/html; charset=utf-8">








style="background :#666;position:absolute;overflow:auto;display:none;padding:50px;">Click me




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