简单js的Demo问题,小弟求助啦。
按照我的想法 应该有一个alert 但是。。。木有。。。
<html> <head>
<script language="JavaScript">
function test1(form) {
if (form.text1.value == "")
alert(“Please input something in the text area!")
else {
alert(“Hi,"+form.text1.value+"! Input is over!");
}
}</script>
</head> <body>
<form name="first">
<input type="text" name="text1">
<input type="button" name="button1" value=“submit"
onClick="test1(this.form)">
</form>
</body> </html>
------解决方案--------------------
JScript code
//此处alert里的引号有错
alert(“Please input something in the text area!")
alert(“Hi,"+form.text1.value+"! Input is over!");