tags:

views:

34

answers:

1

How to check the page is exist or not using javascript.

A: 

If it is in the same domain, you can make a head request with the xmlhttprequest object [ajax] and check the status code.

If it is in another domain, make an xmlhttprequest to the server and have it make the call to see if it is up.

epascarello