| javaEnabled() | ใช้ตรวจสอบว่า browser ใช้ java ได้หรือไม่ |
|---|---|
| taintEnabled() | ใช้ตรวจสอบว่า browser ใช้ data tainting ได้หรือไม่ |
| cookieEnabled() | ใช้ตรวจสอบว่า browser ใช้ cookie ได้หรือไม่ |
| appName | ใช้คืนค่าชื่อของ browser |
| appVersion | ใช้คืนค่า version ของ browser |
| browserLanguage | ใช้คืนค่าภาษาที่ใช้ใน browser |
| appCodeName | ใช้คืนค่า code name ของ browser |
| cpuClass | ใช้คืนค่า class ของ cpu ของ browser |
| appMinorVersion | ใช้คืนค่า version ของ ระบบปฏิบัติการ |
| platForm | ใช้คืนค่า platform ของ ระบบปฏิบัติการ |
| systemLanguage | ใช้คืนค่า ภาษาที่ใช้ใน ระบบปฏิบัติการ |
| userLanguage | ใช้คืนค่า ภาษามาตรฐานที่ใช้ใน ระบบปฏิบัติการ |
| userAgent | ใช้คืนค่า user-agent-header ที่ส่งจาก client ไปยัง server |
| onLine | ใช้ตรวจสอบว่า online หรือ offline อยู่ |
method:javaEnabled ();
return type:boolean
content:ใช้ตรวจสอบว่า browser ใช้ java ได้หรือไม่
example:if ( window.navigator.javaEnabled() ) { alert ( "java enabled" ); }
method:taintEnabled ();
return type:boolean
content:ใช้ตรวจสอบว่า browser ใช้ data tainting ได้หรือไม่
example:if ( window.navigator.taintEnabled() ) { alert ( "data tainting enabled" ); }
method:cookieEnabled ();
return type:boolean
content:ใช้ตรวจสอบว่า browser ใช้ cookie ได้หรือไม่
example:if ( window.navigator.cookieEnabled() ) { alert ( "cookie enabled" ); }
property:appName;
return type:string
content:ใช้คืนค่าชื่อของ browser
example:alert ( window.navigator.appName );
property:appVersion;
return type:string
content:ใช้คืนค่า version ของ browser
example:alert ( window.navigator.appVersion );
property:browserLanguage;
return type:string
content:ใช้คืนค่าภาษาที่ใช้ใน browser
example:alert ( window.navigator.browserLanguage );
property:appCodeName;
return type:string
content:ใช้คืนค่า code name ของ browser
example:alert ( window.navigator.appCodeName );
property:cpuClass;
return type:string
content:ใช้คืนค่า class ของ cpu ของ browser
example:alert ( window.navigator.cpuClass );
property:appMinorVersion;
return type:string
content:ใช้คืนค่า version ของ ระบบปฏิบัติการ
example:alert ( window.navigator.appMinorVersion );
property:platForm;
return type:string
content:ใช้คืนค่า platform ของ ระบบปฏิบัติการ
example:alert ( window.navigator.platForm );
property:systemLanguage;
return type:string
content:ใช้คืนค่า ภาษาที่ใช้ใน ระบบปฏิบัติการ
example:alert ( window.navigator.systemLanguage );
property:userLanguage;
return type:string
content:ใช้คืนค่า ภาษามาตรฐานที่ใช้ใน ระบบปฏิบัติการ
example:alert ( window.navigator.userLanguage );
property:userAgent;
return type:string
content:ใช้คืนค่า user-agent-header ที่ส่งจาก client ไปยัง server
example:alert ( window.navigator.userAgent );
property:onLine;
return type:boolean
content:ใช้ตรวจสอบว่า online หรือ offline อยู่
example:if ( window.navigator.onLine ) { alert ( "online now" ); }