title: Pass Javascript Alert a Value
body: <p>I'm looking for a <a href="http://www.w3schools.com/JS/js_popup.asp" rel="nofollow noreferrer">simple</a> javascscript alert box.  I need to be able to pass the alert box a string of text.</p>
  
  <p>Is something like this possible? My syntax is probably wrong.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  function show_alert()
  {
  alert(my_string_here);
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;input type="button" onclick="show_alert()" value="Show alert box" string="alert for system number 2" /&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>