Solved

how to check wheather innternet connection is their or not

Posted on 2009-05-13
5
159 Views
Last Modified: 2012-05-06
how to check wheather innternet connection is their or not
0
Comment
Question by:trinadhrakesh
5 Comments
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24376787
try this
<html>
<head>
<title>check</title>
<meta content="text/html; charset=windows-1251" http-equiv=Content-Type>
<script type="text/javascript">
<!--

function check() {
if (navigator.onLine(boolean)) {
alert("you are online")
}
else {
alert("you are not online")
}
}

//-->
</script>
</head>
<body onload="check()" >
</body>
</html>
0
 

Author Comment

by:trinadhrakesh
ID: 24376970
its not working
0
 
LVL 12

Accepted Solution

by:
Gibu George earned 500 total points
ID: 24377155
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 37194224
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question