SyntaxFix
Write A Post
Hire A Developer
Questions
use the following inside the body tag
<body onclick="theFunction(event)">
then use in javascript the following function to get the ID
<script> function theFunction(e) { alert(e.target.id);}