Re: Handling of script attributes (was Re: HTML 4.0 draft (fwd)

MegaZone (
Fri, 25 Jul 1997 16:29:49 -0700 (PDT)

Message-Id: <>
Subject: Re: Handling of script attributes (was Re: HTML 4.0 draft (fwd)
Date: Fri, 25 Jul 1997 16:29:49 -0700 (PDT)
From: MegaZone <>

Once upon a time Liam Quinn shaped the electrons to say...
>But many of the event handlers are media-specific, which is unnecessary as 
>well as inconsistent with the overall message of HTML 4.0.  There should 

true, I can see your point there.

>be ways to provide event handlers inline, embedded, or externally, just as 
>with style sheets.  Inline, a more generic attribute like SCRIPT (or 
>perhaps EVENT) would be consistent with the style sheet approach, and 
>would allow new, language-dependent event handlers to be developed without 
>having to update HTML standards.  The syntax of the SCRIPT value would be 
>language-dependent, but I could imagine something like the following:
><INPUT TYPE=text NAME=email SCRIPT="onChange: validate(this); onFocus: 
>or perhaps
><INPUT TYPE=text NAME=email SCRIPT="onChange { validate(this); } onFocus { 
>tip('e.g.,'); }">

I think this is a great idea.  It allows for expansion in the scripting
realm without having to change the HTML DTDs.  I'd also include language
tags, as are used today:

<INPUT TYPE=text NAME=email SCRIPT="javascript1.1: (onChange: validate(this); 
onFocus: tip('e.g.,');) vbscript: (onChange: anotherfunc();
onFocus: anotherfunc();)">

That would allow greater flexibility for authors who wish to tailor
features to different browsers and scripting languages - and versions

>>Note that you can already 
>>use the SRC attribute on a SCRIPT element to call an external script.
>This syntax makes little sense given the following alternative:
><LINK REL=Script HREF="yourscript.js" TYPE="text/javascript" TITLE="Form 

I agree.  We sort of got the empty <SCRIPT></SCRIPT> element by default
as an add-on.  But the LINK method seems a better way going forward.

Livingston Enterprises - Chair, Department of Interstitial Affairs
Phone: 800-458-9966 510-737-2100 FAX: 510-737-2110
For support requests:  <> 
Snail mail: 4464 Willow Road, Pleasanton, CA 94588