如何防止不必要的询问要关闭窗口? [英] How to prevent the un-want asking do you want to close the window?

查看:79
本文介绍了如何防止不必要的询问要关闭窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我称之为"ACW"-另一类网页;这意味着该网站不是用来吸引因果浏览器的,而只是作为小组内部的小型组织和交流而使用的.

出于这样的信念,Web环境已经受到所有这些商业活动的严重破坏,以至于我需要做些事情以腾出我的空间.

我知道的唯一技术是使用一个小程序启动主页,只是打开另一个窗口并立即将其关闭:

I call this "ACW" - Another Class of Webpage; that means the website is not for attracting causal browsers but to be used as a small in-group organizing and communicating.

It is from a believe that Web environment has been intruded so badly by all these commercial activities that I need to do something to take my space back.

The only technique I know of is to start the home page with a tiny program just to open another window and close it immediately:

<%
   response.write("<script>window.open('" & my_url & "','_blank','" & My_screen & "');window.close(); </script>")
<br>
where My_screen has been set to the attribute:

attribute = "status=no, toolbar=no, resizable=yes, scrollbars=yes,location=no, menubar=no, titlebar=no"
<br>
    My_Screen = "width=1024, height=718, top=0, left=0, " & attribute

%></br></br>



但是在使用IE进行测试时,它留下了两个问题:

1)当我发出窗口时,它询问我是否要关闭打开的窗口.关闭以将其关闭!这太麻烦了!无论如何,是否有必要设置IE(或其他浏览器)并阻止它询问明显的问题?

2)IE仍然占据着顶线和底线.有没有办法删除IE上下行?很简单:我想退回我的空间,我不想看到我没问过的任何东西.

rgds,
kfl.



But it left with two problems when testing with IE:

1) it asks me whether I want to close the opening window when I issued the window.close to close it! This is a nusiance! Is there anyway to set IE (or other browser) and stop it asking the obvious?

2) The top and bottom line still occupied by the IE. Is there way to remove the IE top/bottom line? It is simple: I want my space back and I do not want to see anything I did not ask.

rgds,
kfl.

推荐答案

1.如果您花几秒钟的时间来Google搜索,似乎有一种解决方法. http://blogs.x2line.com/al/articles/350.aspx [ ^ ]

2.您是顶/底线是什么意思?如果状态栏和位置栏仍在显示,请尝试使用值0而不是数字.
1. There seems to be a workaround if you just spend a few seconds Googling around. http://blogs.x2line.com/al/articles/350.aspx[^]

2. What do you mean by top/bottom line? If status and location bars are still showing try using the value 0 instead of no.


这篇关于如何防止不必要的询问要关闭窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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