As we don't have any idea of what you've tried it's kinda difficult to be too helpful. However as I've been searching unsuccessfully for a browser macro engine that would do this very thing I'm beginning to think that it is impossible by trying to invoke the click. There appears to be some disjunction between the event and the activation of the script which suggests that if it is possible it will be by a considerably more circuitous route!