title: disable safari error alerts
body: <p>I used following code to disable javascript alerts</p>
  
  <pre><code>window.alert = function() {};
  </code></pre>
  
  <p>it disables all other alerts except safari browser error alerts while running on Iphone, like invalid address alert.
  how can i disable these error alerts on safari?</p>