I looked through a lot of posts and found a lot of scripts that redirect iOS devices to another page. But I do not want to change the whole page, just one link.
The whole site (www.example.com) works fine for iOS devices and includes one link to a flash-based application page (on another host, app.example.com). This particular application has an iOS version for use on the iPad. When the click is clicked, I just want computer users to go to the Flash application page, and iPad users to go to the page (at www.), Which tells them about the iOS application.
I imagine something like:
Use the iOS detection script in your head to set the isiPad variable to true if the user is on an iPad. Then in the body, something will function as:
if 'isiPad' = true, then
<a href="http://www.example.com/useiOSapp.html"> Run the App </a>
otherwise
<a href="http://app.example.com/flash-app-page.html">Run the App</a>
source share