How can i get a reference to a new window? [solved]

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Prefontim
Advanced
Advanced
Posts: 13
Joined: Sun Jun 26, 2005 9:08 pm

How can i get a reference to a new window? [solved]

Post by Prefontim »

With milonic, if i open a new window, I don't see a way to get a reference to the opened window. In standard javascript, I can get a reference like so:

var windowRef = window.open();

I'm sure Milonic uses this function, so it seems possible that they could return a reference, yet I can't find out how to do it. Does anyone know?
Prefontim
Advanced
Advanced
Posts: 13
Joined: Sun Jun 26, 2005 9:08 pm

Re: How can i get a reference to a new window?

Post by Prefontim »

I was able to get it working, by specifying a clickfunction. inside the clickfunction, you can grab the window reference from the the '_ww' variable.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: How can i get a reference to a new window?

Post by Ruth »

Thanks for posting the solution. We appreciate it :)

Ruth
Post Reply