window.location.href= "test://com.bhkj.imk"; / / this is the protocol that opens an app
setTimeout (function () {
window.location.href="https://www.baidu.com";
}, 1000);
the above code is executed on the mobile. If the APP is not installed on the phone, it will jump to the Baidu page, and if the APP is already installed on the phone, it will successfully open the APP, but the problem is that if you click on the APP to return to the previous page, it will jump to the Baidu page. Now, is there any way to prevent JS from continuing to jump to Baidu after successfully opening APP?