disable onclick function when click somewhere else

前端 未结 0 944
盖世英雄少女心
盖世英雄少女心 2021-02-01 23:24

I added shadow to search box when someone clicks but I want to hide the shadow when user clicks some where else the code that I use:

function myFunction() {
  doc         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题