ping cross domain url with javascript?
Is there any way that I can ping sites like http://google开发者_StackOverflow.com
(without them providing any pining interface) using only JavaScript.
It is not possible to 'ping' from a browser using Javascript. There are some hacks available that allow you to do something similar under specific conditions.
You can find some information here at stackoverflow:
How to ping IP addresses using JavaScript
Is it possible to ping a server from Javascript?
精彩评论