JavaScript: get the current executing <script> node?
- by Martin
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!