嵌入了javascript的html
<html>
<head>
<title>Example</title>
<script type ="text/javascript">
我有没有正确调用这个函数????
function displayatts()
{
document.getElementById("buttonone").onclick = saysomething;
}
这里有什么问题吗???
function saysomething()
{
alert("I am 28 years old");
}
</script>
<body>
<input type="button" id="buttonone" value="me" >
</body>
</head>
</html>