Redirect Mobile Users

I’ve been working on finding a solution for a client that has a killer Flash website, but which isn’t viewable by iPhones and iPad users. So, we found a nifty script that takes care of all of the leg work for us and can simply redirect users based on screen size or based on User Agent (device type).

That said, you will never see this page if you are using an iPhone or iPad and will instead be redirected to this page – Mobile Users Landing Page

Thanks to CSS-Tricks.com for the solution!

Here is the code (between your opening and closing script tags):