Learn with Vamshi
Wednesday, July 4, 2012
Detect Internet connection in HTML5
In HTML5 you can detect it as following
<script>
var status = navigator.onLine ? 'online' : 'offline';
alert(
status
);
</script>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment