<form action="dgxx_three.asp" method="post" name="myform" >//删除onSubmit事件<input type="submit" name="www" value="Next Step" onclick="check()">

解决方案 »

  1.   

    <html>
    <head>
    <title>welcome to 3tgallery.com</title>
    </head>
    <body>
    <table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
    <SCRIPT language=javascript>
    function check(a){
    if(a.content.value==""){
    alert("请选择发送对象.");
    a.content.focus();
    return false;
    }
    }
    </SCRIPT>
    <form action="dgxx_three.asp" method="post" name="myform" onSubmit="return check(this);">
    <table width="100%"  border="0" cellspacing="1" cellpadding="1">
    <tr><td><input type="text" name="content" value="" size="10"></td></tr>
    <tr><td>  <input type="submit" name="www" value="Next Step"></td></tr>
    </table>
    </form>    
    </body>
    </html>