[Webdev] DHTML etc.

adam beecher lists at spamfilter.cc
Fri Jun 7 13:04:12 IST 2002


> >><DIV onClick="javascript: alert(this.innerHTML)">blah</DIV>
> >
> >shouldn't that be:
> ><div onclick="alert(this.innerHTML);">blah</div>
> >?
> >
> >not sure that "javascript: " is understood by too many browsers
> (innerHTML is definitely misunderstood by a lot)
>
> You could be right. I work mostly with IE so I'm not 100% about that :)
>
javascript: is understood by all modern browsers, but there's no need to put
it in an event handler. It's really only for use directly in a HREF tag.

adam





More information about the Webdev mailing list