How to get click event with javascript from an A-frame element
<p>UPDATE: 
You can use <code>onclick= function();</code>in the HTML. </p>

<p>For example:
<code>&lt;a-box  onclick="myFunction()"&gt;&lt;/a-box&gt;</code></p>

<p>I want to get click event of cursor with javascript from an A-frame element, like a box for example, how can I do it?</p>