How can I emulate jQuery's trigger()?
<p>I have a small script I am writing (to ignore the hundreds of stupid requests I get on FaceBook).</p>

<pre><code>var inputs = document
              .getElementById('contentArea')
              .getElementsByTagName('input');

for (var i = 0, inputsLength = inputs.length; i &lt; inputsLength; i++) {

    if (inputs[i].value !== 'Ignore') {
        continue;
    }

    // What I would do with jQuery, if inputs[i] was a jQuery object.
    inputs[i].click();

}
</code></pre>

<p>So basically I want to call the click event on all these ignore buttons, and let FaceBook's AJAX do the rest.</p>

<p>How can I emulate the click without jQuery? I have Googled but haven't found the answer.</p>
