DHTML Lab: HierMenus CENTRAL: Version 3.x FAQ #6 - dhtmlab.com
Frequently Asked Question #6
Entered: Feb 15, 1999
|When I use the menus in a frameset, there are some links which I would like to mark so that they break the frameset, loading into the full window. What can I do?
Some of the pages my items link to need to appear in a new window. Can I do this from the menu script?
In a multi-frame frameset document, I don't always want the linked-to pages to appear in the "main" frame, but in a third or fourth frame off the main frameset. Can I do this?
How can I specify a target for the menu item links, like I do in the A tag with TARGET= attribute?
This feature was introduced and discussed in detail in version 2.1.
IMPORTANT NOTE: All versions since version 2.1 are compatible, with the exception of version 3.05, which inadvertently introduced a related problem.
- Loading a page into the full window.
- Loading a page into a new window.
Use the window.open() method, placing the URL as the first argument. You may also specify any of the other arguments of the open() method:
- Loading a page into any frame.
- Specifying a target.
The default target frame is, of course, specified by the mainFrName parameter, introduced in version 1, column 18. Other targets can be specified using the methods illustrated above.
Produced by Peter Belesis and
All Rights Reserved. Legal Notices.
Created: Dec 29, 1998
Revised: June 26, 2001