myElement.click();
...I know this works for the click event, I've not tested it with the other events though.
On 6/12/06, Eric Anderson
<[EMAIL PROTECTED]> wrote:
Gregory Hill wrote:
> var func = myElement.onclick;
> func();
You can get rid of the temp variable:
myElement.onclick();
Eric
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs