Please Note:
HierMenus is protected by copyright laws. Use of the HierMenus code requires a paid licensing agreement.
Click Here to Register

Site Navigation
Bulletins
About
Documentation
FAQ
Samples
Known Issues
Technology Jobs

internet.commerce

Partner With Us
Promotional Gifts
Phone Cards
Shop
Online Universities
Televisions
Laptops
Corporate Awards
KVM Switch over IP
Domain registration
KVM Switches
Laptop Batteries
Imprinted Gifts
Corporate Gifts
Online Shopping

          
internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 
HierMenusCentral Enhance the Functionality of Your Web Site with DHTML HierMenus.
    

home / faq / faq 3

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.

  1. Loading a page into the full window.
    Assign the URL to the location property of the JavaScript top object, which represents the full window:

    DisplayText:"HierMenus Central",
    LinkURL:"javascript:top.location='http://www.hiermenuscentral.com/'",
  2. 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:

    DisplayText:"HierMenus Central",
    LinkURL:"javascript:window.open('http://www.hiermenuscentral.com/')",
  3. Loading a page into any frame (specifying a "target").
    Like the first example, we can assign the URL to the location property of any frame. If you have a frame built with a name= attribute value of seventhFrame (<frame name="seventhFrame">), and you want a linked-to page to appear in it, then the JavaScript statement in your menu item would be:

    DisplayText:"HierMenus Central",
    LinkURL:"javascript:top.seventhFrame.location='http://www.hiermenuscentral.com/'",


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
Created: 3/25/2004
Updated: 3/25/2004
URL: http://www.hiermenuscentral.com/documentation/faq/faq3.html