flawless83
Programmer
- Jun 10, 2011
- 2
Is it possible to find out the ID of an element or to get a handle of an element in which JS is located. For example if we have
<div id="unknown">
<script type="text/javascript>
get a handle of the containing div(in this case the div with an id "unknown")...for example to change it's innerHTML. If we don't know the id of the div.
</script>
</div>
Thanks in advance!
<div id="unknown">
<script type="text/javascript>
get a handle of the containing div(in this case the div with an id "unknown")...for example to change it's innerHTML. If we don't know the id of the div.
</script>
</div>
Thanks in advance!