Mobile detection by navigator.userAgent property


This is not really a tutorial, but only a single page with the custom code needed to detect if user is browsing throught mobile device or not.

I know this method is not ideal and somewhat controversial, but it fits my needs and might help anyone out there as well :smiley:

So, without further ado:

And the clonable project: