The html page goes like this: <body onclick="doSomething();">...</body>
It works fine in chrome or firefox, yet no response in UIWebView of iOS.Is it banned by Apple or something? Or if there any way to work around it?
The html page goes like this: <body onclick="doSomething();">...</body>
It works fine in chrome or firefox, yet no response in UIWebView of iOS.Is it banned by Apple or something? Or if there any way to work around it?
Try this:
<body ontouchend="doSomething();">
Reference:
[1] Event handling documentation.
[2] Does UIGestureRecognizer work on a UIWebView?