View Full Version : Referencing an unnamed window.
12-07-2004, 10:50 PM
I have a form in an iframe, it's a tool on our intranet that gives way more info then my dept needs. I hide the iframe, and have my own form that takes user input, puts it into the hidden form and displays only the info we need on my page. (this is an hta so it all works fine). Problem is, every now and again I get results that open up a new unnamed window, from the form in the iframe (which I have no control over) How do I reference a window that is unnamed and opened from an iframe in this manner?
12-08-2004, 02:21 AM
Then in the main page, you can get the reference of the new window by:
var w = window.open('','unnamedWinNowNamed');
But the caveat is if that window is not yet opened, a blank window will open so you have to immediately close it if the location.href reads "about:blank".
12-08-2004, 04:14 PM
The link in the iframe fires window.open(url,"",attributes) when I do linkid.click() from the parent frame. It isn't named though as you can see. From what you say, it can't really be done. I just got the onclick event from the href instead and just opened that page in the frames source. Thanks for the help.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.