in reply to Further question: automating Javascript with Perl in browser?

WWW::Mechanize is your solution. click and click_button simulates exactly what happens when you 'click' on a button. Read this
  • Comment on Re: Further question: automating Javascript with Perl in browser?