Wednesday, 17 February 2016

JavaScript status indicator - request for a snippet of code

Can anyone who understands JS provide a snippet of JS code that I can
insert in the footer of my local HTML index page to conditionally print,
say, "JavaScript is enabled!" as a reminder of NetSurf's current JS status.

If anyone wants to "go the whole hog" and reflect the two possible states,
then my local index page¹ uses PHP served by WebJames, but that is by no
means essential and may well be over-complicated.

I suspect that what I require is very simple/trivial and can be done in one
line of JS.

TIA

John

¹ As described in my article in Archive magazine some years ago.

--
| John Williams
| johnrw@ukgateway.net

Names for Soul Band:- Soul Doubt *

No comments:

Post a Comment