Can you check a server before doing a window.location change?
===

Mainly what I need to do is `window.location = http://myserver.com` with a conditional statement that says if you can connect to this server then do it, else stay on the current window.location and prompt a message that says you cant connect.