Solved

how to check wheather innternet connection is their or not

Posted on 2009-05-13
5
154 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
Comment Utility
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
Comment Utility
its not working
0
 
LVL 12

Accepted Solution

by:
Gibu George earned 500 total points
Comment Utility
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now