点击没反应?
<script type="text/javascript">
var main = document.body;
//创建链接
function createa(url,text)
{
var input=document.createElement("input");
input.type="button";
input.value=text;
input.setAttribute("onclick","javascript:window.open(url)");
main.appendChild(input);
}
createa("http://www.imooc.com/","慕课网");// 调用函数创建链接
</script>
什么问题呢