title: Display path with backslash (javascript)
body: <p>I try to display a path on an simple javascript alert command :</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr"&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div onClick=myFunction('D:\user\myself\dos')&gt;
      clic here
  &lt;/div&gt;
  
  &lt;SCRIPT LANGUAGE = "JAVASCRIPT"&gt;
    function myFunction(p) {
     alert(p);
    }
  &lt;/SCRIPT&gt;
  </code></pre>
  
  <p>But it does not display the backslash..
  I suppose I should replace all "\" by "\" but I don't find a way to do it.
  (I tried <code>p = p.replace(/\\/g, '\\\\');</code> and a lot of other syntaxes but none of those worked.</p>
  
  <p>Do you have any idea of how to deal with that ?</p>
  
  <p><strong>EDIT :</strong>
  The path comes out from a function and I can't edit it directly in "onClick"</p>