Possible Duplicate: How to check if page exists using Javascript
How to check the page is exist or not using javascript.