English 中文(简体)
javascript popupwell and reload
原标题:javascript popup window and reload

我在窗户上稍有改动。

通常,如果我想在堵塞窗口之后再上一页,我就使用。

   window.opener.reload(true)

但此时此刻,我想将不同的斜体装入<条码>开放式窗口。

因此,我试图:

  window.opener.href( url ).reload(true);

但是,这是徒劳的。 有什么想法,说明为什么不工作,我如何工作?

Thanks jw

最佳回答

Assign to place.href:

opener.location.href = "url";
问题回答

这可能是行之有效的(根据相同的政策限制):

window. opener. place = url;

相反:

window.opener.location.href = "somepage.htm";

您在设置新的uri(第二例)时,迫切需要重载网页:

opener.location.href = "url";




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签