国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

[ASP.NET]按鍵跳轉以及按Enter以不同參數提交,及其他感應事件

2024-07-10 13:05:29
字體:
來源:轉載
供稿:網友
菜鳥學堂:
<html>

<head>
<meta http-equiv="content-language" content="zh-cn">
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>按鍵跳轉測試</title>
<script language=javascript>
function keypress()
{
akey = event.keycode;
if(akey ==13)
{
gotourl = 'find.aspx?'+event.srcelement.name+'='+event.srcelement.value;
window.open(gotourl);
}
}
function keytab1(event)
{
akey = event.keycode;
if(akey ==13)
{
document.forms[0].useraddr.focus();
}
}
function keytab2(event)
{
akey = event.keycode;
if(akey ==13)
{
document.forms[0].userphone.focus();
}
}
function converttoupper(textbox)
{
textbox.value = textbox.value.touppercase();
}

function checknum(str)
{
return str.match(/d/)==null
}

</script>
<style>
<!--
body { font-size: 10pt; font-family: 宋體 }
div { border-style: ridge; border-width: 1px; padding: 10px; background-color:#daf4fe }
-->
</style>
</head>

<body onload="javascript:document.forms[0].userid.focus()">
<div style="width=254px; height:134px">
<form method="post">
<b>查詢條件</b>
<hr>
用戶編碼:<input type="text" name="userid" size="20" onmouseover="this.focus()" onkeypress="keypress()" onfocus="this.select()"><font face="webdings">n</font><br>
用戶姓名:<input type="text" name="username" size="20" onmouseover="this.focus()" onkeypress="keypress()" onfocus="this.select()"><font face="webdings">n</font><br>
用戶電話:<input type="text" name="userphone" onmouseover="this.focus()" onchange="converttoupper(this)" onkeypress="keytab1(event)" onfocus="this.select()"><br>
用戶地址:<input type="text" name="useraddr" onmouseover="this.focus()" onchange="converttoupper(this)" onkeypress="keytab2(event)" onfocus="this.select()">
</form>
</div>
</body>

</html>


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 宜君县| 榆中县| 西华县| 合江县| 承德县| 柳州市| 工布江达县| 望都县| 合肥市| 商洛市| 富蕴县| 隆昌县| 即墨市| 巴林右旗| 井陉县| 文昌市| 东乌珠穆沁旗| 修武县| 乡宁县| 梁平县| 柞水县| 盘锦市| 莱阳市| 南岸区| 准格尔旗| 宝山区| 西和县| 张家口市| 天镇县| 左贡县| 凤庆县| 醴陵市| 松溪县| 子洲县| 宕昌县| 通榆县| 松原市| 松原市| 怀来县| 石景山区| 南宫市|