Detection script for whether you are coming from a mobile browser or not. If you are on mobile, the page above will bring you to onmobile.html, otherwise you will stay on that page.
However, there's a link on the mobile page that will bring you back to that to the test page and will not cause a redirect, using the magic of cookies.
To add to your site, copy and modify the JavaScript from mobiledetect.html.
To link to your mobile detect page without causing a redirect, add ?noredirect
to the URL.
99% of the clever bits of this code comes from Detect Mobile Browser. If you like what this does please donate some money.