Button click call to node js function failing
<p>I am trying to make a button that makes a call to the node js server function route <code>getMentions</code>, but it's not being invoked</p>

<p>This is my button in <code>index.html</code>:</p>

<pre><code>&lt;button action="/getMentions" class="btn" id="btn1"&gt;Show Mentions&lt;/button&gt;
</code></pre>

<p>and these are my functions in <code>index.js</code>:</p>

<pre><code>router.get('/', function(req, res, next) {
    res.render('index.html');});

router.get('/getMentions', function (req, res) {
    console.log("got to GET MENTIONS!");
    performRequest();});
</code></pre>

<p>The first route hits fine and the html is rendered, so then why doesn't the second one work? I think it's something with my configuration maybe. Any help would be appreciated. Thanks in adv!</p>