I'm trying to use jquery's trigger function to simulate a click on a personal google Australian search page that I'm developing. From what I've read you can use trigger to just simulate a click on a link but I seem to be having problems and google seems to be very stingy with its info. Here's the code:
<a class="link" href="<?php if(isset($newurl)) { echo $newurl; }?>" target="_blank">tab link</a>
<script type="text/javascript">
$("a .link").trigger('click');
</script>
Thanks very much! Sam