Find a named link on the page, then go click it - in Javascript
<p>I'm using Greasekit, so needs this to be in Javascript, please</p>

<h1>What I would tell a human to do</h1>

<p>Click the link called <code>&lt; Previous</code> so that it opens in a new window 
(in the example below, it goes to Page 22, but it could be any number, so it really needs to look <strong>for this specific</strong> link)</p>

<pre><code>&lt;table class="v_page_nav" border="0" cellpadding="5" cellspacing="0" width="100%"&gt;
    &lt;tr&gt;
        &lt;td width="100%"&gt;Showing 551-575 of 610 Results&lt;/td&gt;
        &lt;td&gt;
            &lt;a href="/wine/newsletter?ie=UTF8&amp;amp;page=22" id="pagination-prev-link"&gt;
                &lt; Previous&lt;/a&gt;| Page:&lt;/td&gt;
        &lt;td class="off"&gt;
&lt;a href="/gp/vine/newsletter?ie=UTF8&amp;amp;page=1" id="pagination-page-1"&gt;1&lt;/a&gt;
        &lt;/td&gt;
        &lt;td&gt;...&lt;/td&gt;
        &lt;td class="off"&gt;
&lt;a href="/wine/newsletter?ie=UTF8&amp;amp;page=22" id="pagination-page-22"&gt;22&lt;/a&gt;
        &lt;/td&gt;
        &lt;td class="on"&gt;
&lt;a href="/wine/newsletter?ie=UTF8&amp;amp;page=23" id="pagination-page-23"&gt;23&lt;/a&gt;
        &lt;/td&gt;
        &lt;td class="off"&gt;
&lt;a href="/wine/newsletter?ie=UTF8&amp;amp;page=24" id="pagination-page-24"&gt;24&lt;/a&gt;
        &lt;/td&gt;
        &lt;td class="off"&gt;
&lt;a href="/wine/newsletter?ie=UTF8&amp;amp;page=25" id="pagination-page-25"&gt;25&lt;/a&gt;
        &lt;/td&gt;
        &lt;td&gt;| &lt;a href="/wine/newsletter?ie=UTF8&amp;amp;page=24" id="pagination-next-link"&gt;Next &gt;&lt;/a&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<h1>The code:</h1>

<p>the last two lines of the answer are probably:</p>

<pre><code>link.target="_blank";
link.click();
</code></pre>

<p>(this is to open the link in the new window)
..but what I want to know is how to write the rest of the code; the lines that go above it.</p>

<h1>Note</h1>

<p>an alternative to finding <code>&lt; Previous</code> might be to look for a link with the id <code>pagination-prev-link</code> </p>
