Page is a not externally linkable
- WebmasterWorld
-- Accessibility and Usability
---- Simple Accessibility Tricks


Bernard_Marx - 5:41 pm on Jul 24, 2007 (gmt 0)


I don't know whether this part is an opinion or a question.

I have heard tell of the use of proxies in corporate environment that disable scripting by stripping out script from responses from the internet. If such scenarios do indeed occur (that's the question, btw) then the content of NOSCRIPT won't be displayed - since the browser itself is script-enabled.

-------------------------

Most cases of conditional display (Tricks #1 and #4, say) can be accomplished by the judicious use of contextual CSS selectors:


.isScript #myElm{display:none;}
/* ...and all other display specs for elements */

Then in the script file of your choosing:

document.getElementsByTagName("html")[0].className = "isScript";

The hiding/display of elements has been decided before they even are parsed.

This way, there's no need to litter the document with little script blocks directly after sections that need to be hidden/displayed if script-enabled. Equally, one can do away with NOSCRIPT blocks too, because the logic can work both ways.


Thread source:: http://www.webmasterworld.com/accessibility_usability/3403057.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com