按鈕按下後出現彈跳訊息的語法(javascript

<html> <script language='javascript'> function validate() { return confirm('你確定要刪除?') } </script> <body> <form action="http://tw.yahoo.com" onSubmit="return validate()"> . . . <input type=submit name="edit"... show more <html>

<script language='javascript'>

function validate()
{
return confirm('你確定要刪除?')
}

</script>

<body>

<form action="http://tw.yahoo.com" onSubmit="return validate()">
.
.
.
<input type=submit name="edit" value="編輯>
<input type=submit name="del" value="刪除>
</form>

</body>
</html>
-----------------------------------
想要問的是 ,我不管點「編輯or刪除」都會出現「你確定要刪除?」,請問要如何才能只有點刪除出...
1 answer 1