title: Why isn't chrome running this javascript
body: <p>When I run this in Chrome (ver 2), it doesn't return the string, but it works in Firefox (ver 3).  Why is this?</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  function disp_prompt() {
      var name=prompt("Please enter your name","Harry Potter");
      if (name!=null &amp;&amp; name!="") {
          document.write("Hello " + name + "! How are you today?");
      }
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;input type="button" onclick="disp_prompt()" value="Display a prompt box" /&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>