Top

[Javascript] ڹٽũƮ Ʈũ Ȯϱ | Web-Programing
(admin) | Editor | 2019/03/19 14:29:21 | ȸ:6481

Navigator onLine Property


  navigator.onLine


- ¶ ȯ (Ʈũ )

- б (read-only) Ӽ


Browser Support

 


 [ڵ]

if  (navigator.onLine  = =  false) {
         alert( " Ʈũ Ǿ  ʽϴ." ) ;
}  

 

 


[]


JavaScript DOM Navigator 

: ٷ ü


[navigatorü Ӽ]


appCodeName : ڵ

appName :

appVersion : Ȯ

cookieEnabled : Ű 밡

language : Ǵ

onLine : ¶ Ȯ

platform : ÷

userAgent : ޵Ǵ user-agent

product :


 

 [ڵ]

 

var txt  =   "" ;
txt  + =   "<p>Browser CodeName: "   +  navigator.appCodeName  +   "</p>" ;
txt  + =   "<p>Browser Name: "   +  navigator.appName  +   "</p>" ;
txt  + =   "<p>Browser Version: "   +  navigator.appVersion  +   "</p>" ;
txt  + =   "<p>Cookies Enabled: "   +  navigator.cookieEnabled  +   "</p>" ;
txt  + =   "<p>Browser Language: "   +  navigator.language  +   "</p>" ;
txt  + =   "<p>Browser Online: "   +  navigator.onLine  +   "</p>" ;
txt  + =   "<p>Platform: "   +  navigator.platform  +   "</p>" ;
txt  + =   "<p>User-agent header: "   +  navigator.userAgent  +   "</p>" ;
txt  + =   "<p>User-agent header: "   +  navigator.product  +   "</p>" ;
document.write(txt) ;
 

=> ũҿ ȭ :  

  

ϱ
ϱ
0
0
0


ҷ Դϴ.
[Javascript] Javascript Object ٷ  (admin) 2019-03-28 14:17:06
[PHP] ¥ (admin) 2018-10-19 11:08:08