javascript - postMessage from child to parent window in Safari using window.open -


i'm using window.open(...) open new window (same domain, same subdomain, same directory, same everything, different .html file). in child window, i'm using send messages parent:

window.opener.postmessage({status:'ready'}, window.opener.location); 

it works great in chrome , firefox ... not in safari. here alternatives tried did not work:

window.opener.* // no matter put, safari says .opener empty object window.parent // child refers self despite different window, same subdomain 

how can reference parent window can send postmessage(...) messages back?


Comments

Popular posts from this blog

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - SSE Emitter : Manage timeouts and complete() -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -