AmigaActive (892/2347)

From:Neil Bothwick
Date:13 Mar 2001 at 00:16:49
Subject:Re: Javascript Does'nt work on my amiga ???

Matt Sealey said,

> Hello Neil

>> The script you posted had more errors than lines. You've defined the
>> function as a method of the heading tag. How can a piece of text have an
>> onClick handler? Only links have those.

> Nearly all objects on the page that can be enclosed in tags have onClick
> handlers.

What is a click in the context of the H2 tag? An onClick handler on
something that isn't clickable makes no sense.

> http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onclick.asp

That's DHTML, not HTML.

>> You haven't called the function anywhere

>> and there are no comments to prevent non-JS browsers displaying the
>> contents of the script.

> Like that matters :)

About as much as the missing closing brace. A lot of people browse with
JavaScript disabled, many companies insist on it.

>> I'd suggest thinking through what you want to do more clearly, and then
>> reading some books or tutorials on JavaScript to determine the best way
>> to do it.

> I suggest you quit taking Netscape 4.7's word for the scope of Javascript
> these days, and read up on the documentation for NS6 and IE5.5 ;)

And that would explain why V3 asks for volume Ram%20Disk:?

Neil



Neil Bothwick - New Media Editor, Amiga Active Magazine
Connected via Wirenet - http://www.wire.net.uk
The UK's first Amiga-only internet access provider
---
Don't count the days, make the days count.

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Make good on the promise you made at graduation to keep
in touch. Classmates.com has over 14 million registered
high school alumni--chances are you'll find your friends!
http://us.click.yahoo.com/l3joGB/DMUCAA/4ihDAA/d8AVlB/TM
---------------------------------------------------------------------_->

Quote carefully and read all ADMIN:README mails

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/