|
Frequently Asked Question #3
Question: How can I set the target for my menu items? I.E., How can I
set up my menu items so that the URLs they include are opened up in a new window, a
different frame, or so they overlay the current frame (like target="top")?
Answer: Each of the scenarios above have an answer that relates to
the same powerful, but seldom used feature of the menus: The ability to include a
javascript: URL in the menu items. Any JavaScript statement or function call
can be used in place of an http:// URL. This gives you the ability to have a
menu link do...anything!
This feature was introduced and discussed in detail way back in HierMenus
version 2.1.
All versions since version 2.1 are compatible, with the exception of version 3.05
and versions 4.0 - 4.0.5, which inadvertently introduced related problems.
Let's illustrate the use of javascript: URLs by answering the questions
above directly. For the sake of the examples, we'll assume that you want to link to
HierMenusCentral.
|