I need to check if iPhone Safari support specific url (lppn://playnow - that url will开发者_JAVA技巧 run Texas Poker application if its already installed) if url does not supported i want to run other link (application page in AppStore).
Are WINDOW.LOCATION return false if it can not load uri?
window.location
won't return false, however you can use AJAX for this.
If jQuery is relevant, it's matter of one or two lines of code (AJAX call to the page, handle the onerror event) otherwise you'll have to build it yourself, but it's still possible.
精彩评论