title: How can I check if I can connect to a URL using javascript?
body: <p>How can I check if I have a connection with a URL? Could be something like trying to download a image, something like if the server is online. Would it be possible using <code>javascript</code> to do something like this?</p>