How to autoclick that is in this set position (of a known table class)
<p>I'm using Greasekit so need this to be in Javascript.</p>

<p>I want to be able to automatically click the link where it says <code>25</code> below. However, <strong>the link is not always 25</strong>, it is sometimes (say) 21 or 26 (depending on how long the newsletter is). 
What remains constant is that the link is always in the same position / place on the page. It is ALWAYS the one before <code>Next &gt;</code> and after <code>3</code>     </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 1-25 of 610 Results&lt;/td&gt;
&lt;td&gt;&lt;span style="color: #999999"&gt;&lt; Previous&lt;/span&gt; | Page:&lt;/td&gt;
&lt;td class="on"&gt;
&lt;a href="/wine/newsletter?ie=UTF8&amp;amp;page=1" id="pagination-page-1"&gt;1&lt;/a&gt;&lt;/td&gt;
&lt;td class="off"&gt;
&lt;a href="/wine/newsletter?ie=UTF8&amp;amp;page=2" id="pagination-page-2"&gt;2&lt;/a&gt;&lt;/td&gt;
&lt;td class="off"&gt;
&lt;a href="/wine/newsletter?ie=UTF8&amp;amp;page=3" id="pagination-page-3"&gt;3&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;...&lt;/td&gt;
&lt;td&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=2" id="pagination-next-link"&gt;Next &gt;&lt;/a&gt;      &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>As I was saying... <strong>the link is not always 25</strong>, it is sometimes (say) 13 or 29 (depending on how long the newsletter is). 
What remains constant is that the link is always in the same position / place on the page. It is ALWAYS the one before <code>Next &gt;</code> and after <code>3</code>     </p>

<p>Can I, using code, always find and then click on the appropriate link?</p>

<h1>If i was instructing human</h1>

<p>I would start by saying to find table class <code>v_page_nav</code>
Then, scan your eyes right and look for the link <code>Next &gt;</code>. Click the link that immediately precedes it: it will always be a number (and that number will always be higher than the numbers on the left of it).</p>

<p>How do I achieve the same thing in code? </p>
