当前位置:网站首页>The focus of the Dom implementation input triggers
The focus of the Dom implementation input triggers
2022-08-02 03:58:00 【yorup】
When the text box is clicked, the default text in it is hidden, and the text is displayed when the mouse leaves the text.
onfocus get mouse focus trigger
onblur lost mouse focus trigger
Method one, using two events
The code is as follows:
Method 2: Encapsulate function
The code is as follows:
The effect is as follows:
边栏推荐
- [symfony/mailer]一个优雅易用的发送邮件类库
- Various ways of AES encryption
- ES6三点运算符、数组方法、字符串扩展方法
- TypeScript 错误 error TS2469、error TS2731 解决办法
- 阿里云设置域名解析重定向后,无法使用Chrome访问
- QR code generation API interface, which can be directly connected as an A tag
- PHP8.2 version release administrator and release plan
- easyswoole 使用redis执行geoRadiusByMember Count无效修复
- js 之 Object.defineProperty()
- js 中this指向
猜你喜欢
Solve the problem of Zlibrary stuck/can't find the domain name/reached the limit, the latest address of Zlibrary
MySql Advanced -- Constraints
Eric靶机渗透测试通关全教程
ES6介绍+定义变量+不同情况下箭头函数的this指向
4.表单与输入
阿里云服务器如何使用admin账户登录
线程池(线程池介绍与使用)
Phpstudy安装Thinkphp6(问题+解决)
hackmyvm: again walkthrough
[league/climate] A robust command-line function manipulation library
随机推荐
(1) introduction to Thinkphp6, installation view, template rendering, variable assignment
IO stream, encoding table, character stream, character buffer stream
About the apache .htaccess file of tp
PHP 发起支付宝支付时 订单信息乱码解决
Several interesting ways to open PHP: from basic to perverted
PHP8.2将会有哪些新东西?
14.JS语句和注释,变量和数据类型
[campo/random-user-agent] Randomly fake your User-Agent
Kali环境下Frida编写脚本智能提示
16.JS事件, 字符串和运算符
vim编辑模式
[symfony/mailer] An elegant and easy-to-use mail library
New usage of string variable parsing in PHP8.2
Add a full image watermark to an image in PHP
js __proto__、prototype、constructor的关系
17.JS条件语句和循环,以及数据类型转换
hackmyvm-bunny walkthrough
13. JS output content and syntax
IP门禁:手把手教你用PHP实现一个IP防火墙
(4) 函数、Bug、类与对象、封装、继承、多态、拷贝