Reading content from site in background using javascript

cogar

New Member
Have been looking around for some time now and didn't seem to find a solution that worked for me. I'm newbie regarding javascript (only done basic JAVA) but that haven't kept me from trying >DI have to check whether a site exist before opening it. This is an example of a site not working:Site not workingI tried this answer, but couldn't make it work. I notice that the tab in chrome does not have a header name like \[code\]404\[/code\] or \[code\]404 Error\[/code\]. So was thinking if I could read other info from the site. Can I read the\[code\] <h1>404 Not found</h1>\[/code\]from the web site in the background and if it does not equal this string then direct the user to the site?
 
Back
Top