I have a local webpage that I use to consolidate a bunch of information for my coworkers. I want to be able to use the webpage to check the response from different websites that I do not own with Firefox. All I want is to make sure the website is online and not down. Is there a way I can do that with Firefox without any extensions or server sided code?
For example, if google is up then do something; if it is not then do something else.
$.ajax( "http://google.com" )
.done(function() {
alert( "success" );
})
.fail(function() {
alert( "error" );
})