为啥我的代码不能运行啊?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>
<body>
<script type="text/javascript">
var main = document.body;
//创建链接
function createa(url,text)
{var aURL=document.createElement("a");
aURL.type="text";
aURL.href="http://www.baidu/com";
aURL.style="color:'red'";
aURL.value="点击百度一下";
main.appendChild(aURL);
}
// 调用函数创建链接
var button=document.createElement("input");
button.type="button";
button.value="点击创建链接";
button.onclick="javascript:'createa(url,text)'";
main.appendChild(button);
</script>
</body>
</html>