Sure, but if you're writing a script on top of LWP, chances are it isn't a graphical user agent but rather some sort of bot or spider - and then it doesn't matter whether you execute the Javascript or not.

(Besides, although this is a different issue, I try to avoid DHTML altogether - try css/edge for some amazing demos of what's possible purely with CSS. And XSL has the potential to take that to yet another level. The advantage is that since these techniques do not use side effects, unlike Javascript, they can be (attempted to be) interpreted sensibly by any agent, whether it be a graphical client, a braille reader or voice synth for disabled folks, some kind of spider, a printing engine or whatever else you might come up with. How should a voice synth convey a Javascript popup menu?)

Makeshifts last the longest.


In reply to Re^7: Executing Javascript from HTML pages in perl by Aristotle
in thread Executing Javascript from HTML pages in perl by gnangia

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.