Erkeleteyin
2016-10-29 09:58
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>DOM2级事件处理程序</title>
<!--script begin-->
<script type="text/javascript" >
//DOM2级事件处理程序
var openw = document.getElementById('openw'); //通过id提取openw按钮
openw.onclick = function() { //把匿名函数 赋给属性
alert('!!!!!!');
}
</script>
<!--script end-->
</head>
<body>
<form>
<input id = "openw" type="button" value="check here" />
</form>
</body>
</html>我这里什么地方出错了吗? 浏览器上没反应
同上,怎么个加载顺序
懂了, 哈哈 加载顺序不同,
DOM事件探秘
99528 学习 · 1305 问题
相似问题
回答 2
回答 1