title: Check html file exist on server using javascript
body: <p>My ASPX code generated some html files where I just put link for paging like</p>
  
  <pre><code>&lt;a href="1.html"&gt;First&lt;/a&gt;&amp;nbsp;|&amp;nbsp;
  &lt;a href="3.html"&gt;Next&lt;/a&gt;&amp;nbsp;|&amp;nbsp;
  &lt;a href="1.html"&gt;Previous&lt;/a&gt;&amp;nbsp;|&amp;nbsp;
  &lt;a href="9.html"&gt;Last&lt;/a&gt;
  </code></pre>
  
  <p>say if user currently on second page when it press Next moves to 3rd page ... </p>
  
  <p>now issue is when user clicking Next button several times and system is in progress to generate let say 5th page it will show error page.</p>
  
  <p>Is there any way to check from html via javascript to check whether file is present or not?
  Kindly help me to pull out from this show stopper issue </p>