Sure. The key is just to call the function handlelink() inside your arbitrary link (ie: "Next link"), and pass a reference to the tab you want o be selected into this function. For example, consider the below:
Code:
<ul id="tablist">
<li><a class="current" href="http://www.google.com" onClick="return handlelink(this)">Google</a></li>
<li><a href="http://www.yahoo.com" onClick="return handlelink(this)" id="y">Yahoo</a></li>
<li><a href="http://www.msn.com" onClick="return handlelink(this)">MSN</a></li>
<li><a href="http://www.news.com" onClick="return handlelink(this)">News.com</a></li>
<li><a href="http://www.dynamicdrive.com" onClick="return handlelink(this)">Dynamic Drive</a></li>
</ul>
<iframe id="tabiframe" src="http://www.google.com" width="98%" height="350px"></iframe>
<form name="tabcontrol" style="margin-top:0">
<input name="tabcheck" type="checkbox" onClick="handleview()"> Open tab links in browser window instead.
</form>
<a href="http://www.yahoo.com" onClick="return handlelink(document.getElementById('y'))">Arbritary link</a>
In this case the arbitrary link when clicked on selects the Yahoo tab (plus loads yahoo.com). Be sure to give the tab in question an unique ID, so it can be referenced.
Bookmarks