Mobile Platform Detection on the web

I had a use case recently where I need to determine whether the client browser was a desktop/laptop/etc or a mobile device that supports tap events in JS. This will be useful to people who are dynamically binding different events to elements. var tmpElem = document.createElement(‘div’); tmpElem.setAttribute(‘tap’, ‘return;’); clickEvent = (typeof tmpElem.tap == “undefined”) ? …

Hey there! Come check out all-new content at my new mistercameron.com!