Not sure I understand what kind of a clue this is. Can you elaborate?
Its telling you there is no alert function because "this" is not a Window so there is no function "alert" -- even javascript has "namespaces"
See the docs and source code of https://metacpan.org/pod/WWW::Mechanize::Firefox#mech-eval_in_page-str-env-document and you'll understand.
In reply to Re^5: Executing JavaScript function using WWW::Mechanize::Firefox
by Anonymous Monk
in thread Executing JavaScript function using WWW::Mechanize::Firefox
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |