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
WBOYOriginal
2016-05-16 17:24:18863browse

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




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