61,111
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
function test(){
var title = bbb.title.value;
var content = bbb.content.value;
if(title == ""||title == " "){
alert("请输入标题");
return;
}
if(content == ""||conten == " "){
alert("请输入正文内容");
return;
}
bbb.submit();
}
</script>
<body background="D:\程序文件\189000148 郭思呈\郭思呈\GuoSiCheng_01_48\GuoSiCheng\WebContent\images\back.png">
<form action="sendnews_result.jsp" method="post" name="bbb">
<table border="0" cellspacing="5" cellpadding="0" width="25%" style="font-family:SimHei">
<tr>
<td>标题:</td>
<td><input id="title" type="text" size="30" name="title" style="border-radius:9px;width:200px;height:30px;" ></td>
</tr>
<tr>
<td>正文:</td>
<td><textarea rows="25" cols="100" name="content" style="border-radius:10px;"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center">
<input class="button" type="button" value="提交" onclick="test()">
<input class="button" type="reset" value="重置" >
</td>
</tr>
</table>
</form>
</body>