|
发表于 2020-1-21 21:54:01
|
显示全部楼层
<FORM id="Form1" method="post" runat="server">
<ASP:TEXTBOX onkeydown="javascript:GoKeyDown();" id="TextBox3" runat="server" TextMode="MultiLine"></ASP:TEXTBOX>
<ASP:BUTTON id="Button1" runat="server"
Text="Button"></ASP:BUTTON></FORM>
<SCRIPT language="javascript">
<!--
function GoKeyDown()
{
if(event.ctrlKey && event.keyCode == 13)
{
Form1.Button1.click();
}
}
//-->
</SCRIPT>
|
|