Script Categories

User Details >>> Platform Page.

Do you maintain a different version of your site for Windows and another for Mac users? Or, when allowing your visitor to download items from your site, would you like to automatically redirect them to the appropriate software download page for their computer?

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
page = ((navigator.platform.indexOf('Win') > -1) ? "win.html" : "mac.html");
document.write("<b>[ You would have been taken to " + page + " ]</b>");
//  End -->

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).