title: Can javascript redirect my page to a url and if fails without alert?
body: <p>I have a app link something like this,</p>
  
  <pre><code>pudding://anime/87667266347
  </code></pre>
  
  <p>I want a kind of javascript to try to redirect to this url. and if redirection fails, do nothing, without alert and just stay on current page.</p>
  
  <pre><code>try{
      window.location.href = "pudding://anime/87667266347";
  }catch(error){
      //do nothing
  }
  </code></pre>
  
  <p>The code above seems can not dismiss the browser alert popup.  </p>
  
  <p>How can I achieve this?</p>