87,907
社区成员
发帖
与我相关
我的任务
分享
<html>
<script type='text/javascript'>
function Hello() {
alert("hello");
}
function create_link()
{
var div=document.createElement('div');
div.innerHTML = " <a href=\"javascript:Hello()\"> alink </a> "
document.getElementById('h').appendChild(div);
}
</script>
<body>
<h4 id='h'> </h4>
<input type='button' value='create' onmouseup='create_link();' />
</body>
</html>