动态添加button
<body>
<script language="JavaScript">
<!--
var o=document.createElement("input");
o.type="button";
o.value="test"
o.onclick=new Function("test(this)");
document.body.appendChild(o);
function test(b){ alert(b.value);}
//-->
</script>
</body>