开发者

How to know that WINDOW.LOCATION load url

开发者 https://www.devze.com 2023-01-31 12:03 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消