SyntaxFix
Write A Post
Hire A Developer
Questions
You can pass this when you call the function
this
<button onclick="doSomething('param',this)" id="id_button">action</button> <script> function doSomething(param,me){ var source = me console.log(source); } </script>