关于:配置关闭按钮 [英] about:config close button

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

问题描述

function closeMe()
            {

                window.open('','_parent','');
                window.close();

         }


我在关闭窗口时具有上述js函数,但在狐狸中无法使用,但在使用以下

关于:配置fox的地址栏并进行设置
dom.allow_scripts_to_close_windows为true
使用此窗口的窗口已关闭,但是任何人都建议我如何在我的asp.net js函数或asp.net代码中使用此设置.


i have above js function for close window but it will not work in fire fox but after use of following

about:config address bar of fire fox and set
dom.allow_scripts_to_close_windows to true
using this windows is close but any one suggest me how to use this settings in my asp.net js function or asp.net code

推荐答案

如果要从后面的asp.net代码即可注册客户端脚本,如下所示:

If you want to call from asp.net code behind then You can register client script as below:

Page.ClientScript.RegisterClientScriptBlock(this,"key","closeMe();");


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

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