How do I find out from which tag I called a javascript function at
runtime? I have a stack of nested custom tags, in the following
structure:
<tag_1 value="someval" >
<tag_2>conten t</tag_2>
<tag_3>conten t, javascript link to function modify()</tag_3>
</tag_1>
Someone suggested I use "this" as a function parameter to modify(), but
that contains the entire window object, rather tha a reference to the
document's html node that called the function (in this case tag_3).
If anyone knows how to include the tag's position in the document so that
I can pull its content and find its parent, etc, I'd be very grateful.
- Mike
runtime? I have a stack of nested custom tags, in the following
structure:
<tag_1 value="someval" >
<tag_2>conten t</tag_2>
<tag_3>conten t, javascript link to function modify()</tag_3>
</tag_1>
Someone suggested I use "this" as a function parameter to modify(), but
that contains the entire window object, rather tha a reference to the
document's html node that called the function (in this case tag_3).
If anyone knows how to include the tag's position in the document so that
I can pull its content and find its parent, etc, I'd be very grateful.
- Mike
Comment