简体   繁体   中英

Cross domain messaging using window.name?

The characteristic of window.name which allows us to do XDM , is the fact that the name never changes. (even if we redirect.).

  • Does this feature (of not changing) is supported/[continue to be supported] in all browsers ?
  • More general question , why doesn't it change ? - (even after redirection ) The common sense claims that if i navigated to another location , the window object should be reset....

I couldn't find it on MDN.

Does this feature (of not changing) is supported/[continue to be supported] in all browsers ?

I can't find any documentation suggesting that it has been locked down

More general question , why doesn't it change ? - (even after redirection ) The common sense claims that if i navigated to another location , the window object should be reset

If it changed, then as soon as you linked to a new document in it:

<a target="myWindow" href="http://example.com">

… then a subsequent attempt to link to a different document in the window would cause a new window to be opened because there would no longer be one named myWindow .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM