Hiermenus Go Forth, III - DHTML Lab | 4 | WebReference

Hiermenus Go Forth, III - DHTML Lab | 4

Logo

Hiermenus Go Forth, III:
Version 4 - The External Arrays - Menu and Item Parameters


Element 1 - item_link_url,

Description
The URL to navigate to when the item is clicked.

Value
URL String
May be specified as:
  • string

Example Values
string (http: URL):
"http://www.webreference.com/experts/"
    The browser will navigate to http://www.webreference.com/experts/ when the item is clicked.

string (javascript: URL):
"javascript:window.open('http://www.webreference.com/experts/')"
    The browser will load http://www.webreference.com/experts/ into a new window.

string (javascript: URL):
"javascript:top.location='http://www.webreference.com/experts/'"
    The browser will load http://www.webreference.com/experts/ into the full window from a frameset environment.

string (mailto: URL):
"mailto:pbel@meteor.com"
    The browser will launch the user's email client with pbel@meteor.com as the recipient.


The menu above has item display text created by these array parameters:

HM_Array4 = [
[...],
["Experts","http://www.webreference.com/experts/",...],
["Experts (new win)","javascript:window.open('http://www.webreference.com/experts/')",...],
["Mail Peter","mailto:pbel@meteor.com",...]
]
Default
none.
If parameter is omitted, no action is taken when the user clicks the item.

Differences from Version 3 equivalent
There is no difference from the Version 3 equivalent.

Comments
This parameter can be any valid URL. More often than not, http: URLs linking to Web pages will be used. Keep in mind, however that you are not limited to http: URLs.

Now, let's look at two new parameters.


Produced by Peter Belesis and

All Rights Reserved. Legal Notices.
Created: Oct 03, 2000
Revised: Oct 03, 2000

URL: http://www.webreference.com/dhtml/column38/4.html