Java script detect Touch-screen devices


When you are developing web sites for compatibility all browsers and mobile devices.But sometimes you want to detect who viewing the site that using device is consisting with touch-screen or not.Here is a perfect,tested and easy example to detect touch screen devices.This was tested in lot of web browsers.

Also this method can be use to detect touch-screen devices.

You can view Modernizr Touch events information from here.


About Author

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.