To Detect the status of the network with javascript.

R

ripken95

I connect to the internet through ADSL.
I want to write the web page which can detect the connection status with javascript.
This detection is like the signal detection in the mobile phone.
If the signal is weak, the status may have one squares or zero on the phone.
How could I do if I want to detect the status of the network?
Thx and Best Regards.
 
G

Grant Wagner

ripken95 said:
I connect to the internet through ADSL.
I want to write the web page which can detect the connection status with javascript.
This detection is like the signal detection in the mobile phone.
If the signal is weak, the status may have one squares or zero on the phone.
How could I do if I want to detect the status of the network?
Thx and Best Regards.

I think what you want to do is determine a visitor's bandwidth with client-side
JavaScript on a web page.

That can't be done reliably using client-side JavaScript, and even with an applet, or
some sort of server-based process, all it will tell you is how fast you are able to
upload/download to/from the host where the web page resides. It would tell you nothing
about the speed you can achieve connecting to other hosts.

If you mean you want to track packet loss or some other network parameter, that can't be
done by client-side JavaScript running in the default security environment.

--
| Grant Wagner <[email protected]>

* Client-side Javascript and Netscape 4 DOM Reference available at:
* http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html
* Internet Explorer DOM Reference available at:
* http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp
* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-developer/upgrade_2.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,206
Latest member
Zenden

Latest Threads

Top