help with popup menus and passing arguments..

In the foll. code right clicking on either 'Plz rt click on it' or 'Another rt click' opens the popup menu but once i am in the pop up menu how do i know which description element was possibly responsible for the opened up popup menu..
in fact i need to value of the description element.. how do i access it..
any ideas ?

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<window id="example-window1" title="Example 2.2.1"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script type="text/javascript" src="chrome://window/content/21oct.js"/>

<popupset>
<popup id="clipmenu">
<menuitem label="Create filter on the word" oncommand="hel();"/>
</popup>
</popupset>

<vbox id='vb' style="overflow:auto" context='clipmenu'>
<description id='d' value='Plz rt click on it'/>
<description id='d2' value='Another rt click'/>
</vbox>
</window>

Thanks in advance...
[1249 byte] By [gsatyaprakash] at [2007-11-20 11:34:00]
# 1 Re: help with popup menus and passing arguments..
Is the right-click triggered by JavaScript? If so, you can pass parameters to a function telling it which menu was clicked.

...onclick="function('which_description_tag')"...
PeejAvery at 2007-11-8 0:43:22 >