in reply to Knocking Down Pesky JavaScript Popups from WWW::Mechanize
Just have Mechanize call the URL that is normally opened by JavaScript, and then proceed as usual. Basically, figure out what the JavaScript would do and do it yourself in your Perl code.