English 中文(简体)
如何让两个窗口(一个窗口由另一个窗口开放)进行沟通
原标题:how can let two windows(a window is opened by another) communicate
  • 时间:2012-04-10 08:43:56
  •  标签:
  • javascript

if the title is not clear let me describe it again if has a page a.html that has a javascript code below

    window.open("http://www.baidu.com/", "_self", "");

原始窗口和新开放窗口如何沟通?

感谢

最佳回答

新文件将载有一份<条码>开放式的财产,注明开启的窗口。 如果浏览器拿到新的文件,就会丢失。

return Value of open将提及新的窗口(因此,需要将其分配给一个变量)。

same origin policy 与往常一样适用。

问题回答

假设它们属于同一领域,而且你实际上打开了新窗口(“自有”)并不是打开新窗口的伟大想法。

<代码>var w = 窗户(......)

<代码>w.document...

以及儿童窗口

http://www.un.org/Depts/DGACM/index_french.htm

<代码>开放式。 Var = ......

如果没有,你需要交叉领域说明





相关问题
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.

热门标签