Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript On body click, hide search Re: On body click, hide search

#132580
chrisburton
Participant

@CrocoDillon Also, the reason I can’t use `.focus()` is because IE9+ causes the placeholder to be removed even if there’s nothing typed yet.

Chrome:

Click to zoom

IE:

Click to zoom