Does the HTML onclick attribute work on iOS & android devices in both Chrome and Safiri.
E.g. If a HTML button has an onclick attribute to run a JavaScript function, will a touch gesture work as a click?
Does the HTML onclick attribute work on iOS & android devices in both Chrome and Safiri.
E.g. If a HTML button has an onclick attribute to run a JavaScript function, will a touch gesture work as a click?
Yes it will work.
This has been answered here: Would onClick event work on touch on touch-screen devices?
See https://www.w3schools.com/tags/ev_onclick.asp for browser support