Hi Jaime,

A <noscript> tag is read only when JavaScript isn't present (except in
Netscape 4 as I recall but may have been Netscape 3 which shows both the
script and the noscript content and this was when it WAS the dominant
browser! Someone may like to check that but I can't be bothered as I never
use it any more).

So you would have something like:

<script language="JavaScript" type="text/javascript">
<!--
        document.write("<p>Something if JS enabled or even present</p>")
//-->
</script>
<noscript>
        <p>Something else if JS not available.</p>
</noscript>

Much like <noframes>.

A search for <noscript> on Google brings up everything you need to know in
the first 5 links.

However, for something like onclick this doesn't work. The best thing to do
is test it in Lynx and make sure the default behaviour of the link or button
still works. If you're doing something else with onclick (than a form
element or link) then you may well have to rethink it. Remember, Google (the
worlds biggest blind user) may not be able to follow it if it is
inaccessible so your pages may remain hidden to the world.

As for the other question (below), much the same answer. However, when we do
it, if you don't have JavaScript turned on, you simply don't get the
styleswitcher links at all as they wouldn't work anyway. If you do have
JavaScript, and you tab to the link and hit enter, the appropriate behaviour
is invoked.

Again, see http://www.gt.nsw.gov.au/ and try throwing the mouse away and
turning JavaScript off to see what happens.

You just have to think about it carefully as you put it together and then
test the pants off it.

<quote>
My next question is for e.g. using the style switcher js from ALA, or
whichever js written by programmers for your website. Will you change the
all commands to satisfy the priority even if the script is non-applicable to
lynx users?

PS: Can you see better now Peter? This just make me realise that with all
the concentration for accessibility on websites, I forgot about others :P
Good wakeup call.
</quote>

Yes thanks, but plain text beats it every time on a mail list :-)

P


*****************************************************
The discussion list for http://webstandardsgroup.org/
***************************************************** 

Reply via email to