H I O X INDIA
FREE Javascript
Google
Web hscripts.com
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
Security / Authenticate
Status Bar
Title Bar
Cursor Position
Country List
Calculators
Delete Repeated Values
Alphanumeric
Free Games





Operating System Deduction


About
Operating system deduction javascript is used inorder to find which operating system we are working with.

Features
 a) You can find which operating system you are working with.
 b) You can also find the name of the operating system using this javascript.
 c) Just copy the code from the given textarea and use it.

Preview

Below textbox shows which operating system you are working with.



Code
Javascript Code
<!-- Script by hscripts.com -->
<script language=javascript> function os() { var os = navigator.platform; os = os.toLowerCase(); if(os == "win32" || os == "win16") { document.osd.opr.value="You are using Windows operating system"; } else if(os.indexOf("linux") >= 0) { document.osd.opr.value="You are using Linux operating system"; } else if(os.indexOf("mac") >= 0) { document.osd.opr.value="You are using Mac operating system"; } } </script>
<!-- Script by hscripts.com -->

HTML Code
<table border=0 align=center width=48%>
<tr><td>
<body onload="os()">
<form name=osd>
<input type=text name=opr size=40 style="position: absolute; background-color:#454545; text-align:center; color:white; font-family:arial,verdhana; font-weight:bold;">
</form></body>
</td></tr></table>


Get free version without ©copyright link for just 5


Usage
 Here we have explained with form

 a) Creating a form
   <body onload="os()">
   <form name=osd>
   <input type=text name=opr size=40 style="position: absolute;
   background-color:#454545; text-align:center; color:white;
   font-family:arial,verdhana; font-weight:bold;">
   </form></body>

 b) Here <body onload="os()"> is used inorder to display the name of operating system whenever the form is loaded.
 c) In javascript "navigator.platform" will results the name of operating system you are using.
 d) Copy the code and use it.



License
- This javascript (misspelled as java script)/HTML code is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- Detailed License information can be found here
- You can purchase the script if your requirements does not meet GPL License terms.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Others