property:onLine;return type:booleancontent:ใช้ตรวจสอบว่า online หรือ offline อยู่example:if ( window.navigator.onLine ) { alert ( "online now" ); }