title: onerror html javascript not functioning as expected?
body: <p>I have a HTML\ Javascript element im building, it searches for local files which if they exist work fine and display in the center target frame.</p>
  
  <p>as it happens a file may also not exist hense i would like to in that case revert to the directory rather then the pdf its self. perhaps Im not ussing the onerror in the right contents but I cant get my code to work could anyone help?</p>
  
  <pre><code>&lt;center&gt;&lt;input type="text" placeholder="Project Nr." maxlength="50" id="SEARCHbox" name="Project Nr."&gt;
  &lt;a href="#"
     onclick="this.href = ('file:///V:/' + document.getElementById('SEARCHbox').value + '/Tekeningen/Tekenwerk De Mar/Definitief/' + document.getElementById('SEARCHbox').value + '.pdf' )"
     onerror="this.href = ('file:///V:/' + document.getElementById('SEARCHbox').value')" target="CENTER" &gt;&lt;br&gt;&lt;input type="image" src="../Images/Zoek.png" alt="Submit" width="155" height="21"&gt;&lt;/a&gt;&lt;/center&gt;
  </code></pre>