click event not firing on anchor tag
<p>My click event is not firing.</p>

<p>My <strong>HTML</strong>:</p>

<pre><code>&lt;tr&gt;
    &lt;td&gt;121345&lt;/td&gt;
    &lt;!-- Other td-elements --&gt;
    &lt;td&gt;&lt;a href = "#" class = "remove-item"&gt;Remove&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>My <strong>Javascript</strong>:</p>

<pre><code>window.document.load = function()
{
    document.getElementsByClassName('remove-item').onClick(function(element)
    {
        console.log("element");
        var productId = element.parentElement.parentElement.childElements[0].value;
        console.log(productId);
    });
};
</code></pre>

<p>I don't want to use jQuery for this.</p>