单击按钮关闭浏览器 [英] Browser close on button click

查看:88
本文介绍了单击按钮关闭浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

单击按钮后如何关闭浏览器?

How to close the browser after a button click?

推荐答案

使用 JavaScript .
对于HTML输入控件,请使用onclick事件或OnClientClick作为服务器的Button控件.呼叫window.close();
Using Javascript.
For HTML input control use onclick event or OnClientClick for server Button control. Call window.close();


请参阅(如果有的话)文章 [
Please see (if I got you) the article "How to use Visual C# to close another application"[^].
:)


这篇关于单击按钮关闭浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆