Perhaps you should be explicit about what you're trying to do. What scripting language are you trying to use to which you want the noscript to apply and how are you trying to call the script?

My best guess, based on your second para, is that you have a script (js, VB, tcl or whatever) in the head section of a page generated by a perl script and that you're trying to execute the script or the content of the noscript element when the page is loaded.

Update: Off on the wrong, Wrong, WRONG! track.

The noscript tag is used to provide some sort of alternate info for browsers (intrinsicly or because of a user-selected option) which won't execute the script. But the noscript has to be in the body since it won't be executed if it's in the head section. TTBOMK (and recollection ... and sticking to js for this comment), in the case of an "onload" inside the <body...> tag, HTML provides no way to apply a <c>noscript alternate.

OTOH, if you've inserted your script in-line, it appears that noscript should work if placed immediately after the script; substitute "might" for "should" if your script is in the head or an external file (and, in either case, remember that HTML doesn't allow noscript inside a <p>...</p> construct.

IMO, §18 of the w3c guide on scripts doesn't provide a satisfactorily explicit answer to your question and the doc for CGI.pm that's distributed with 5.12 effectively tosses the question back to w3c...

But this is based on way-too-much guesswork. Tell us more.


In reply to Re: cgi.pm and noscript by ww
in thread cgi.pm and noscript by Anonymous Monk

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.