Learn with interactive lessons and technical documentation, earn professional development hours and certifications, and connect with the community.
/>
Note that "This property is defined in World Wide Web Consortium
(W3C) Document Object Model (DOM) Level 2", however I'm not
certain Gecko-based browsers honor <SCRIPT FOR="..." ..>.
--
| Grant Wagner <gwagner@agrico reunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available
at:
*
Grant Wagner <gwagner@agrico reunited.com> writes:
[color=blue]
> Amir wrote:
>[color=green]
>> What the for="window" is used for in the <script> tag?[/color][/color]
[color=blue]
> Note that "This property is defined in World Wide Web Consortium
> (W3C) Document Object Model (DOM) Level 2", however I'm not
> certain Gecko-based browsers honor <SCRIPT FOR="..." ..>.[/color]
Microsoft is being a little optimistic here. The "for" attribute is
*not* defined in W3C DOM 2 DOM. It is an HTML attribute for label
elements (the associated DOM property is called "htmlFor" since "for"
is a keyword in most languages). There is no "for" attribute for script
tags in HTML, and no similar property on DOM script elements.
/L
--
Lasse Reichstein Nielsen - lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Comment