日期:2014-05-16  浏览次数:20445 次

新手,javascript出错了,求指导!
<html>
<head>

<title>senlypan</title>

<script language="javascript">
fun1()
{
Confirm("提示信息comfirm");
}
fun2()
{
alert("提示信息alert");
}
fun3()
{
Prompt("提示信息prompt");
}
document.write("hold or not !");
</script>

<style type="text/css">


a:link{color:White ; text-decoration :none;}  
a:visited{color:Red; text-decoration:none;}
a:active{color:Green; text-decoration:none;}
a:hover{color:Blue; text-decoration:none;} 

</style>


</head>




<body>
senlypan
<a href ="#">senlypan http://www.100fosu.com hello </a>

<form name="myform">
<input type= "button" name="input1" value = "confirm" onClick="fun1()"/>

<input type= "button" name="input2" value = "alert" onClick="fun2()"/>

<input type= "button" name="input3" value = "prompt" onClick="fun3()"/>
</form>



</body>

</html>

------解决方案--------------------
哥们 你没加 function关键字
------解决方案--------------------
探讨

哥们 你没加 function关键字