I have some javascript that relies on the use of window.open and inter-window communication (where the new 'child' window communicates success / failure to the 'parent' window).
This (inter-window communication) works fine in most cases, but doesn't work for some browsers that don't support inter-window communication. Examples include Windows Phone and iPhone's UIWebView.
I currently do client-side (javascript based) user-agent sniffing to detect these scenarios - and fallback to a different code path to workaround the issue.
Is there an alternative to user-agent sniffing that I could use?
To be clear, the window.open works (where works means 'it opens the requested url'). What isn't reliable is using window.opener and postMessage to do inter-window communication from the 'child' to the 'parent'.