Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to check if website is down javascript

isSiteOnline("http://www.facebook.com",function(found){
    if(found) {
        // site is online
    }
    else {
        // site is offline (or favicon not found, or server is too slow)
    }
})
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to edit website in browser using javascript on google chrome 
Javascript :: jquery get element innertext 
Javascript :: append to array js 
Javascript :: enzye check if it renders 
Javascript :: nodejs fetch 
Javascript :: javascript format price 
Javascript :: remove jquery 
Javascript :: react router dom install 
Javascript :: Best Way to reset form elements 
Javascript :: select all checkbox jquery 
Javascript :: TypeError: Object of type uint32 is not JSON serializable 
Javascript :: fs , valid path check 
Javascript :: how to include in ejs 
Javascript :: moment from seconds 
Javascript :: how to change checkbox state in jquery 
Javascript :: navigation.openDrawer is not a function react native 
Javascript :: jquery remove link href 
Javascript :: reverse 179 in javascript 
Javascript :: javascript string comma seprated price to int 
Javascript :: how to print in jsp 
Javascript :: last week date js 
Javascript :: fullcalendar v5 time format am/pm 
Javascript :: js get json keys 
Javascript :: javascript to get uri 
Javascript :: res.status 
Javascript :: touppercase 
Javascript :: javascript validate email 
Javascript :: cdn react 
Javascript :: how to use ctx on canvas js 
Javascript :: cypress input value should be 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =