using popupmenu, and passing the target frame's ID when clicked.Can I do this?

I'm using the following code snippet to show popup menus (in a header
frame) and target the menu options to another frame. This works fine for
a single hard-coded frame (e.g. "2" below, in doClick) but I need to
pass in the target frame ID when the user clicks, the reason being that
different options will target different frames depending on who the user is.

the target frame name is in the target attribute of the link tag, i.e.
<a href="" target="here"> that the user clicks on but I don't know how
to make use of this in the code below.

Richard Cornford wrote:
> Randy Webb wrote:
> <snip>
>
>>But "this.href" in that function doesn't refer to the
>>links href property, it is attempting to refer to the
>>functions href property.
>
>
> You don't expect me to actually read code that has not been presented in
> a properly indented form to the extent of understanding what - this -
> may refer to in any context, do you?

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!