<input type="submit" onclick="return clicked();" /> <script> function clicked() { if (值为空) { alert(xxxxxx); return false; } return true; } </script>