JavaScript Reference/Javascript Properties/platform

Материал из Web эксперт
Перейти к: навигация, поиск

"platform" Example

   <source lang="javascript">
   

<html> <body> <script language="JavaScript">

   function function1() {
       alert(navigator.platform);
   } 

</script> <input type="button" value="Platform" onclick="function1();"> </body> </html>


     </source>
   
  


"platform" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |clientInformation navigator | +----------------+--------------------------------------------------------------+

     </source>
   
  


"platform" Possible Values

   <source lang="javascript">

Possible Values HP-UX, Mac68K, SunOS, Win16, Win32.


     </source>
   
  


"platform" Syntax and Note

   <source lang="javascript">

Note: Read-only property. Returns the computer"s operating system name.

Syntax:

objectName.platform


     </source>