This content has been marked as final. Show 4 replies
I don't think there is a way to get target info. Though the target info wouldn't matter unless you are planning to redirect the url to the default browser.
Ex. i have a form that displays an address and want to open a new window that provides directions via Google Maps. I have a generic google maps html page that I open from the main window. can i either send commands to run JS on the popup window or at least send parameters to the new window?
You can access the window object of the new window by newWin.htmlLoader.window
From there, accessing your data / functions should be possible.
Well actually, I'm trying to emulate the browser's window-known-by-target-name functionality. If a window.open comes in with a new "target", I'll do a createWindow and use that. If it comes in with an old "target", I'll just pass back the htmlLoader of the HTML control in a previously created window.
This seemingly works for me but I can't really pass the information along naturally from the window.open(..., target, ...) information.
So, yes. It still does matter. I'm not trying to pass this via navigateToURL to the default browser.