JavaScript: get the current executing <script> node?
Posted
by Martin
on Stack Overflow
See other posts from Stack Overflow
or by Martin
Published on 2010-06-02T03:24:07Z
Indexed on
2010/06/02
3:43 UTC
Read the original article
Hit count: 467
Hi, I need to know if it is possible the current execution node?
Example:
..html
<script id="x">
console.log(document.currentNode.id); // << this must return "x"
</script>
..html
Thanks!
© Stack Overflow or respective owner