window.location - 在一个空白的窗口.... [英] window.location -- in a blank window....
问题描述
我正在尝试在新窗口中打开一个网址,同时pg加载(但不是在
弹出窗口中......)我需要像
//当pg正在加载时..
window.location =''page.html''
//但我需要这是在一个新的空白窗口打开..
//(不在弹出窗口,常规新窗口......)
你能做什么这个??谢谢..
Frances Del Rio
I''m trying to open a url in a new window while pg loads (but NOT in a
pop-up..) I need to do sthg like
// while pg is loading..
window.location =''page.html''
// but I need this to open in a new blank window..
// (NOT in a pop-up, a regular new window..)
can you do this?? thank you..
Frances Del Rio
推荐答案
Frances Del Rio写道:
Frances Del Rio wrote:
我正在尝试在pg加载时打开一个新窗口中的URL(但不是在弹出窗口中......)
I''m trying to open a url in a new window while pg loads (but NOT in a
pop-up..)
这是一个矛盾。在新窗口中打开URI是一个弹出窗口。
-
David Dorward< http://blog.dorward.me.uk/> ; < http://dorward.me.uk/>
首页是〜/ .bashrc的位置
That is a contradiction in terms. Opening a URI in a new window IS a popup.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Frances Del Rio写道:
Frances Del Rio wrote:
我正在尝试在pg加载的同时在新窗口中打开一个URL(但不是在弹出窗口中......)我需要做类似的事情
// pg正在加载..
window.location =''page.html''
//但是我需要这个以新的方式打开空白窗口..
//(不在弹出窗口,常规新窗口......)
你能做到吗?谢谢..
Frances Del Rio
I''m trying to open a url in a new window while pg loads (but NOT in a
pop-up..) I need to do sthg like
// while pg is loading..
window.location =''page.html''
// but I need this to open in a new blank window..
// (NOT in a pop-up, a regular new window..)
can you do this?? thank you..
Frances Del Rio
popup与popup之间的唯一区别和新窗口是名字。弹出窗口是一个新窗口,弹出一个新窗口。
如果你想要一个使用JavaScript的新窗口,只需使用:
window.open(''page.html'',''windowName'');
如果不指定第三个参数,你应该得到一个新窗口带
默认尺寸,位置和镀铬。
-
Grant Wagner< gw **** *@agricoreunited.com>
comp.lang.javascript常见问题 - http:/ /jibbering.com/faq
popup与popup之间的唯一区别。和新窗口是名字。一个弹出窗口是一个新窗口,一个新窗口是一个弹出窗口。
The only difference between a "popup" and a "new windows" is the name. A
popup is a new window, a new window is a popup.
打扰一下?这两者之间有很大差异,在我看来......
a新的空白窗口(用常规< a href ="#" target =" _blank">打开)
标签不会被弹出窗口阻止程序阻止...弹出窗口打开
使用window.open()方法将...(除了其他差异,
例如在弹出式窗口中你可以自定义多少镀铬你在一个新的空白窗口中你不能..你的方式调整它们的大小(你可以用
调整一个新的空白窗口的大小,但它与你的方式有所不同
它在弹出窗口中,你可以在window.open()方法中的args ..)
在工作中我们出于正当理由使用弹出式窗口,而不是用于广告...
但是我们我已经开始遇到弹出窗口拦截器了......我以为我们这样可以打开新的空白窗口,这很简单,除非
你在加载时尝试做window.location并需要这个lo阳离子
在一个新的空白窗口而不是在同一个窗口中打开(你在< a href ="#"&b;目标= QUOT; _blank">谢谢大家的回复..还是希望能找到解决这个问题的方法.. Frances
Excuse me?? there is quite a difference between the two, it seems to me..
a new blank window (opened with a regular <a href="#" target="_blank">)
tag will not be blocked by pop-up blockers... a pop-up window opened
with the window.open() method will.. (apart from other differences,
like for example in a pop-up you can customize how much chrome you
include, in a new blank window you can''t.. the way you resize them (you
can resize a new blank window, but it''s done differently from how you do
it in a pop-up, where you do it in args in window.open() method..)
at work we use pop-ups for legitimate reasons, not for advertising...
but we''ve started to come up against pop-up blockers.. I thought we
could open new blank windows instead, which is very simple, except if
you''re trying to do window.location upon loading and need this location
to open in a new blank window instead of in same window (the way you
would do in <a href="#" target="_blank"> thank you all for your
response.. still am hoping to find a solution to this problem.. Frances
这篇关于window.location - 在一个空白的窗口....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!