--
You received this message because you are subscribed to the Google Groups "greasemonkey-users" group.
To post to this group, send email to greasemon...@googlegroups.com.
To unsubscribe from this group, send email to greasemonkey-us...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
I want to to automatically click the link when the page is loaded.
<div id="MyDIV">
<a href="#" onClick="return sortTable( 'sortById', 'byId' )"><img src="/sortById.gif" alt="Sort by ID" border="0" /></a>
</div>you can do it like
$click( $( '<a', $( '#MyDIV' ) )[0] );respectivly
var div = $( '#MyDIV' );
var a = $( '<a', div );
$click( a );
var div = $( '#MyDIV' );
var a = $( '<a', div );
$click( a[0] );