[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] (OT) Q: best way to hide ECMAscript-only things
From: |
David Dorward |
Subject: |
Re: [Lynx-dev] (OT) Q: best way to hide ECMAscript-only things |
Date: |
Thu, 24 Sep 2009 19:05:10 +0100 |
On 24 Sep 2009, at 11:08, Thorsten Glaser wrote:
some of my colleagues at work were wondering how to best hide
ECMAscript-only page elements from browsers where they don’t
work anyway.
Add them with JavaScript, not with HTML.
Someone else pointed out that one could just insert the elements
into the document tree using JS.
Yes, like that.
Others wonder if that would work
in combination with exotic things such as Bloatzilla’s NoScript
plugin (but then I question if the elements in question would
work with it anyway).
If the script is blocked, the elements don't appear. Simple.
This is much better than some tricky thing to include the elements for
all browsers, but to attempt to hide or move them if JS isn't
available for any reason.
(And it is possible to turn JS off in any browser that supports it,
you don't need an extension to do this).
Another suggestion was to provide a “skip JS-only navigation”
link; the solution for non-Lynx items on www.mirbsd.org is,
however, slightly better I think: I’ve placed the top logo
on the bottom of the page and move it up using CSS, so that
Lynx users wouldn’t even need to skip it.
How ... complicated.
--
David Dorward
http://dorward.me.uk