点击butten后关闭本窗口?? .net,网页里加了一个butten,在里面写什么代码是一点这个按钮就关闭这个窗口的? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果是Html控件,可以双击其为其添加onclick事件,并调用window.close();如果是服务器控件,可以为其添加onClientclick事件,并调用window.close(); <html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>未命名頁面</title><script language="javascript" type="text/javascript">// <!CDATA[function Button1_onclick() {window.close();}// ]]></script></head><body> <form id="form1" runat="server"> <input id="Button1" type="button" value="button" onclick="return Button1_onclick()" /> </form></body></html> 在oracle中把表数据存放到datetable中,并把combox的数据源指定为datetable 如何实现语音提示 c#发邮件的问题。。。求解。。。。在线等 arraylist 问题 ListView加图标的小问题,快来抢分!!!!!!!! web中的ExecuteScalar()问题 timer控件的问题 如何将Excel表格中的数据导入到SQL库 如何将TextBox中的数字转化为日期型? 谁有好的电脑图书下在网址啊!(100分) 玩游戏想出的一个思考题 给个思路就散分 大家看看Excel的开发问题
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>未命名頁面</title>
<script language="javascript" type="text/javascript">
// <!CDATA[function Button1_onclick() {
window.close();
}// ]]>
</script>
</head>
<body>
<form id="form1" runat="server">
<input id="Button1" type="button" value="button" onclick="return Button1_onclick()" />
</form>
</body>
</html>