MCQs > IT & Programming > JavaScript > Which will correctly detect a touchscreen device?

JavaScript MCQs

Which of the following code snippets will correctly detect a touchscreen device?

Answer

Correct Answer: function isTouchDevice() { return !!('ontouchstart' in window) || !!('onmsgesturechange' in window); };

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it