如何在ASP.NET中关闭当前打开的浏览器? [英] How to close current open browser in ASP.NET ?

查看:280
本文介绍了如何在ASP.NET中关闭当前打开的浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi
当同一页面中的按钮点击事件时,如何关闭当前打开标签或所有标签。我的意思是我有一个asp按钮,在该按钮点击事件中我需要关闭打开的浏览器或所有当前标签。



我尝试了什么:



i试试这个链接,但不行



[ ^ ]



问候

Aravindb

Hi How to close current opening tab or all tab when button click event in same page.I mean i have one asp button,in that button click event i need to close opened browser or all current tab.

What I have tried:

i try this link,but not working

[^]

Regards
Aravindb

推荐答案

你应该能够在客户端的Javascript中实现这一点。

关闭新打开的窗口 [ ^ ]

javascript - 如何关闭浏览器窗口中的当前标签? - 堆栈溢出 [ ^ ]
You should be able to achieve this is in Javascript at client side.
Close newly opened window[^]
javascript - How to close current tab in a browser window? - Stack Overflow[^]


这篇关于如何在ASP.NET中关闭当前打开的浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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