<html> <head> <script language="JavaScript"> function function1() { alert(navigator.appName); } </script> </head> <body> <input type="button" value="Browser Name" onClick="function1();"> </body> </html>