JavaScript with Navigation in Frames

wxdqz

New Member
Hi there

I have an application that uses two(2) frames. The top frame (called nav) contains the main navigation links for the application. The bottom frame (called main) is where the user would interact with the different forms.

The nav frame links to a pop-up window that contains all the different menu items for that category (which are all hyperlinks with a target of main). A user would then select on of the items and the pop-up is suppose to disappear while the form is displayed in frame 'main'.

This all works fine expect in the Netscape/Mozilla browsers. I have been working on figuring how to get this to work. In the pop-up menu, I have a <a href> statement with target=main and onClick="window.close()".

Unfortunately, the onClick event takes precendent over the actual link. I have tried a multitude of different things such as having the form do a window.opener.close() and also having a javascript in the pop-up menu that does a location and window.close() all to no avail. In both cases, the location portion works and window remains or the window disappears and there is no location function being executed.

Anyone have any suggestions on how to get this to work.

Thanks,
Drew Nathanson
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
 
Back
Top