Untitled UI logotext
Solutions
WebsitesEcommerceMobile AppsWeb AppsProduction Support & Maintenance
Our work
Company
About usBlogPodcastContact us
Book a free consultation

Why doesn't my javascript click event work on iOS/iPhone?

Olivia Rhye

The overwhelming majority of browsers out there support event delegation for the click event, however, iOS does not. But, there is a way around this lack of support. Event delegation will work if the target of the event is a link or an input field.

So if you find yourself troubleshooting javascript event handlers on iOS, changing your <div>, <li> or any other element to an <a> tag will return better results.

Original Source

Ready to start a project?

Book a free consultation
Untitled UI logotext
Our work
About us
Blog
Careers
Submit a ticket
Agency Partnerships
Contact
© 2024 fjorge. All rights reserved.
Privacy