<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<style>
</style>
<script>
window.onload=function(){
document.getElementsByName();
document.title=123;
document.body.innerHTML='abc';
var aBtn=document.getElementsByTagName('input');
document.body.innerHTML='<input type="button" value="按钮"/><input type="button" value="按钮"/><input type="button" value="按钮"/>';
aBtn[0].onclick=function()
{
alert('HAHAHA')
}
};
</script>
</head>
<body>
</body>
</html>