OS (Operating system) name : System Properties : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » System Properties »

 

OS (Operating system) name




<!-- 
     Example File From "JavaScript and DHTML Cookbook"
     Published by O'Reilly & Associates
     Copyright 2003 Danny Goodman
-->

var isWin = (navigator.userAgent.indexOf("Win"!= -1);
var isMac = (navigator.userAgent.indexOf("Mac"!= -1);
var isUnix = (navigator.userAgent.indexOf("X11"!= -1);

----------

<script language="JavaScript" type="text/javascript">
document.write("<style type='text/css'>");
document.write("body {font-size:" ((isMac"12" "10""pt}");
document.write("</style>");
</script>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» System Properties