Hello everyone,
I am trying to use webpage with JavaScript to check if a web server is responding.
I was thinking to show like:
URL : www.google.com
Status : Active...site is up!!!
URL : www.yahoo.com
Status : In Active...site is down!!!
Provide me solution on this, how can i proceed.
Thanks in advance.
Jaganathan BantheswaranPosted Nov 11, 2014, 11:15 AM
$.ajax({
url: 'www.google.com',
success: function() {
//your code here
},
error: function() {
// site is down.
}
});