<html> <head> <script language="JavaScript"> function function1() { var m = document.implementation.hasFeature("HTML"); alert("Implementation value: "+m); } </script> </head> <body> <input type="button" value="Click here" onClick="function1();"> </body> </html>