lSo far you’ve told the
menu items what routine to run, now you need to define the
JavaScript routines
–This is
where the complexity factor comes into play
–The
routines are defined as <PARAM> tags,
with the NAME set to the name of
the JavaScript routine (e.g. “javascript:1”) and the VALUE set to the actual JavaScript command to execute
–Example
<param name=“javascript:1” value=“alert(‘You
clicked link 1’)”>
<param name=“javascript:2” value=“alert(‘You
clicked link 2’)”>
<param name=“menuItems” value=“{Link
One,javascript:1,_}
{Link
Two,javascript:2,_}”>
–Obviously this limits you to what you can include in the
value
lOne
or two lines of JavaScript is about it, otherwise it becomes a kludge
lAnd what if you need to use variables, pass parameters, etc?