<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <header id="header" role="banner"> <h1><a href="/">Hello!</a></h1> </header> <script> if ("ontouchstart" in window) { alert("Touch Start"); } </script> </body> </html>
Detect if device support Touch using Javascript |
No comments:
Post a Comment