Possible Duplicate:
iPhone Safari: check if URL scheme is supported in javascript?
For example, my application is "exapp" and I want to make link on web-site that can open my application if it is installed.
If header HTTT_USER_AGENT contents iPhone. I write
<a href="exapp://params">exapp</a>
if not I write:
<a href="exapp.php">exapp</a>
So, when I open this link on phone I have exapp launched. But on other device I just have web-site.
I have the following problem: If application exapp isn't inslatted on my phone, i have an error: Safari cannot open this page...
Is there ways, to resolve this problem?