<html> <body> <script language="JavaScript"> function function1() { alert(navigator.platform); } </script> <input type="button" value="Platform" onclick="function1();"> </body> </html>