asp.net 中javascript 脚本问题
<script language="javascript">
function selectInput()
{
var choose=document.getElementById("DropArea");
var a=document.getElementById("DropSchool");
var b =document.getElementById("DropDownList1");
return confirm("是否确定选中"+choose.options[choose.selectedIndex].text+a.options[a.selectedIndex].text
+"号码类型为"+b.options[b.selectedIndex].text);
}
</script>
<asp:Button ID="BtnSend" runat="server" Text="发送" OnClick="BtnSend_Click"
OnClientClick= "selectInput()"/>
执行这段代码的时候,他会弹出一个对话框有确定和取消两个按钮,当我点击确定按钮的时候我希望继续执行,当我执行取消按钮的时候我希望能不执行,但是现在我点击取消按钮的时候他依然执行当前的动作是怎么回事