Sam,

I just went to a site that had javascript (www.hninc.com) and got a blank 
screen.  I then brought up the source (F6) and saw that it had javascript and 
edited (F4) it as follows:

Immediately *after* <script Language=Javascript>, I put, "<!--" (without the 
quotes, of course).  I then went to the line that had </script> and 
immediately *before* this, I put "-->".  Hit F2 (save and view) and it 
brought up the paragraph that was originally missing.  There were two links, 
one for using a "Flash" plug-in, and the other for HTML.  Clicking on the 
HTML link brought me to their home page.  (It seems to me that the start of 
the comment is <!-- [two dashes only and a space between the second dash and 
any text] and the end is --> [two dashes again and a space between any text 
and the first dash].)

>From what I understand, and I am no expert or even experienced with JS, JS 
will ignore any comment lines between <script language=javascript> and 
</script>, i.e., it will read and execute the code contained within the 
comment delimiters.

Try it with the URL above.  The source page is not long, and there is only 
one JS in it.

Roger Turk
Tucson, Arizona  USA

Sam Heywood wrote:

On Mon, 12 Jun 2000 0:33:53 +0800, J J Young wrote:

> Sam lambasted:

and consternated:

<snip>

>> On some pages Arachne will successfully ignore the script all by
>> herself, and without our need to intervene.  On other pages we have to
>> comment the script out in order to view the page.  Why?

> -- Have you checked the source (using F4) af all these pages? I'd be
> fairly certain that all the ones Arachne successfully deals with
> have commented-out scripting.

Yes, I have checked the source and have never seen an example of JS having
been commented out.  If it were commented out, then it would be ignored even
by Java-capable browsers.

By "commented out" this is what I mean:

<!---- begin commenting out --------   This goes -
                                                  |
<SCRIPT LANGUAGE="JavaScript">                    |
                                       <---here---
blah blah blah
blah blah blah blah
blah blah
                                   <----- here ----
</SCRIPT>                                          |
                                                   |
---- end commenting out --------->  And this goes -

Sam Heywood

Reply via email to