- From: Marjolein Katsma <access@javawoman.com>
- Date: Fri, 03 Mar 2000 17:45:19 +0100
- To: "Bruce Bailey" <bbailey@clark.net>, "Web Accessibility Initiative" <w3c-wai-ig@w3.org>
Bruce, At 10:13 2000-03-03 -0500, Bruce Bailey wrote: >Dear Group, > >Maybe I missed class for this one... > >Please explain: When does (JavaScript) SCRIPT go in HEAD and when does it >belong in BODY? As a general rule of thumb, scripts within the BODY produce content ( document.write() ) or set up event handlers (BODY onLoad="onLoadHandler();"). The scripts in the HEADER define the functions and variables to be used (called) by those in the BODY, such a s function called onLoadHandler to be executed on load of the document. I'm simplifying, of course. >The formal HTML specifications do not allow NOSCRIPT in HEAD! (SCRIPT in >HEAD is fine though.) How does one make such use of SCRIPT accessible then? No need for NOSCRIPT in the head (unless you're writing content within the head with document.write() ? - unusual). >I am trying to construct some explicit advice for fixing: >http://www.dohistory.com/ Hmm... the dropdown thing "if you're interested in..." looks like a dropdown menu but doesn't seem to be? Looks like it needs fixing even _with_ scripts; I find it very confusing. A NOSCRIPT would display the whole text instead of the dropdown, I guess. (If it's not intended as a menu, why not have plain text, without the need for a script?) The links on the composite image in the middle would need ALT attributes at the least, probably echoing all of the text that is visible with a mousover. Without a script they would still function as links (if I understand the code correctly) so a NOSCRIPT is not needed for those. Hope this helps, Cheers, >Thank you, >Bruce Bailey >webmaster for the Maryland State Department of Education (MSDE) Division of >Rehabilitation Services (DORS) >http://www.dors.state.md.us/ >410/554-9211 Marjolein Katsma HomeSite Help - http://hshelp.com/ Bookstore for Webmasters - http://hshelp.com/bookstore/bookstore.html
Received on Friday, 3 March 2000 11:45:47 UTC