title: JavaScript confirm() on Safari iOS7
body: <p><strong>EDIT: This has been resolved in iOS7 update 7.0.2.</strong></p>
  
  <p>I have seen issues with <code>confirm()</code> crashing Safari on iOS7 in web apps, but not seen anything regarding them in standard mode. The following code is from the W3schools example and Safari simply continues to execute past the confirm() and thus the variable <code>r</code> is always <code>false</code>. Is a custom implementation that mimics confirm()-functionality still the only viable workaround?</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;script&gt;
          function disp_confirm() {
            var r = confirm('Press a button!');
  
            if (r == true) {
              alert('You pressed OK!');
            } else {
              alert('You pressed Cancel!');
            }
          }
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;input type="button" onclick="disp_confirm()" value="Display a confirm box"&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>