<html> <head> <title>hongmaju</title> <link rel="shortcut icon" href="logo.ico" /> <script type="text/javascript"> function displaymessage() { alert("Hello World!") } </script> <script> function prod(a,b) { x=a*b alert(x) } </script> </head> <body> <form> <input type="button" value="Click me!" onclick="displaymessage()" > </form> <form> 数字一<input type="text" name="one" /> 数字二<input type="text" name="two" /> <input type="button" value="两个数相乘" onclick="prod(one.value,two.value)"/> </form> </body> </html>