checking the page exist or not using javascript and ajax
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3922989/how-to-check-if-a-page-is-exist-or-not-using-javascript">How to check if a page is exist or not using javascript</a>  </p>
</blockquote>



<p>can you provide the code for checking the page exist or not.if not,it will redirect to another page.</p>
