链接接管浏览器窗口。 [英] Links take over browser window.

查看:102
本文介绍了链接接管浏览器窗口。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在javascript中创建和打开一个窗口,以便

其他网站中的链接不会窃取它?


我已经写了一个网页,上面有一个表格,供人们从报纸上输入标题和网址

。当他们浏览各种在线报纸时,他们会希望我的窗户能够留在那里。我们不希望他们的弹出链接接管我的

表格窗口!


这是一个真正的问题 - 它使我的网页无用而且浪费人们

时间。


网页窃取其他网页窗口应该是非法的!


感谢您的帮助。

Is there any way to create and open a window in javascript so that links in
other websites won''t "steal" it?

I''ve written a web page with a form for people to enter headlines and URLs
from newspapers. They will want my window to stay there as they surf through
various online newspapers. We don''t want their popup links to take over my
form window!

This is a real problem - it renders my web page useless and wastes peoples
time.

It ought to be illegal for a web page to steal other web page windows!

Thanks for any help.

推荐答案

" Simon Wigzell" < SI ********** @ shaw.ca>写道:
"Simon Wigzell" <si**********@shaw.ca> writes:
有没有办法在javascript中创建和打开一个窗口,以便
其他网站中的链接不会窃取它?


我不明白你的意思是窃取。


你使用window.open创建/打开窗口(除非用户正在使用

弹出窗口拦截器)

我已经写了一个网页,上面有一个表格供人们从报纸上输入标题和网址。他们会希望我的窗户留在那里


留在哪里?

他们浏览各种在线报纸。我们不希望他们的弹出链接接管我的表单窗口!


什么是弹出链接?它是一个打开弹出窗口的链接吗?在这种情况下,

如果他们请求与oyur窗口相同窗口名称的弹出窗口,他们将只接管您的表单窗口。

这是一个真正的问题 - 它使我的网页变得无用,浪费了人们的时间。
网页窃取其他网页窗口应该是非法的!
Is there any way to create and open a window in javascript so that links in
other websites won''t "steal" it?
I don''t understand what you mean by "steal".

You create/open windows using window.open (unless the user is using a
popup blocker)
I''ve written a web page with a form for people to enter headlines and URLs
from newspapers. They will want my window to stay there
Stay where?
as they surf through various online newspapers. We don''t want their
popup links to take over my form window!
What is a popup link? Is it a link that opens a popup? In that case,
they will only take over your form window if they request a popup with
the same window name as oyur window.
This is a real problem - it renders my web page useless and wastes peoples
time. It ought to be illegal for a web page to steal other web page windows!




我还是不明白问题是什么。你能不能更精确地试一试

:你有什么窗户,用户做什么,

和效果是什么?


当您点击窗口中的链接时,链接所引用的页面是在同一窗口中打开的
。这就是网络正常工作的方式,以及它应该如何运作。如果用户想要在另一个

窗口中打开链接,他将使用他的右键菜单并选择在新窗口中打开。


/ L

-

Lasse Reichstein Nielsen - lr*@hotpop.com

DHTML死亡颜色:< URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>

''没有判断的信仰只会降低精神神圣。''



I still don''t understand what the problem is. Could you try explining
it more precisely: what windows do you have, what does the user do,
and what is the effect?

When you click on a link in a window, the page the link refers to is
opened in the same window. That is how the web normally work, and how
it is supposed to work. If the user wants to open the link in a different
window, he''ll use his right click menu and chose "open in new window".

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
''Faith without judgement merely degrades the spirit divine.''


我不明白这种混乱!如果一个网页有一个链接使用

javascript在新的浏览器窗口中弹出一个网页,并且还有其他

浏览器窗口,那么新的网页将出现在其他一个

打开的浏览器窗口中。在这种情况下,其他一个打开的浏览器窗口是

我的在线表格网页。我无法控制甚至不知道在我的窗口中打开其他网页的网页

。所以我的问题是,在javascript中是否有一个

方式,我可以创建我的窗口,以便它不会被取消

结束?它是一个命名窗口,没有区别!
I don''t understand the confusion! If a web page has a link that uses
javascript to pop up a web page in a new browser window, and there are other
browser windows around, the new web page will appear in one of the other
open browser windows. In this case one of the other open browser windows is
my online form webpage. I have no control or even knowledge of the webpage
that is opening other web pages in my window. So my question is, is there a
way in javascript that I can create my window such that it won''t get taken
over? And it is a named window, and that makes no difference!




" Simon Wigzell" < SI ********** @ shaw.ca>在留言中写道

news:ykDQb.260435

"Simon Wigzell" <si**********@shaw.ca> wrote in message
news:ykDQb.260435


这篇关于链接接管浏览器窗口。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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