S
Spadar Programmer
Hello, everyone!
I'm trying to solve the next problem.
There's some HTML code. For example:
<div id="some_div">
...
<script type="text/javascript">
var oParentTag = getParentTag('some_div');
</script>
...
</div>
And my question: is there anything way to get the parent tag without
passing argument to the function in this case? Can JavaScript
atomatically determine the placement tag for executed script?
Regards, Yury Ksenevich (Spadar Programmer)
I'm trying to solve the next problem.
There's some HTML code. For example:
<div id="some_div">
...
<script type="text/javascript">
var oParentTag = getParentTag('some_div');
</script>
...
</div>
And my question: is there anything way to get the parent tag without
passing argument to the function in this case? Can JavaScript
atomatically determine the placement tag for executed script?
Regards, Yury Ksenevich (Spadar Programmer)