Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- navigator.connection.addEventListener('change',function(){
- var type = navigator.connection.type;
- if(type=='wifi'){
- document.writeln(type+' <br>');
- }
- if(type=='disconnected'){
- document.writeln(type+' <br>');
- }
- if(type=='none'){
- document.writeln(type+' <br>');
- }
- if(type=='bluetooth'){
- document.writeln(type+' <br>');
- }
- if(type=='wiimax'){
- document.writeln(type+' <br>');
- }
- if(type=='ethernet'){
- document.writeln(type+' <br>');
- }
- if(type=='mixed'){
- document.writeln(type+' <br>');
- }
- if(type=='unknown'){
- document.writeln(type+' <br>');
- }
- if(type=='other'){
- document.writeln(type+' <br>');
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement