Re: JavaScript status indicator - request for a snippet of code

2016-02-17 Thread John Williams
In article ,
   Richard Porter  wrote:

> >  document.write("javascript is enabled"); 

> alternatively / additionally:

> JS Off

Excellent!

I drop out of PHP and do them both, then drop back in:

?>
 document.write("JavaScript is
enabled!
"); JavaScript is disabled

Re: JavaScript status indicator - request for a snippet of code

2016-02-17 Thread Richard Porter
On 17 Feb 2016 John Rickman Iyonix  wrote:

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


> try this:

>  document.write("javascript is enabled"); 

alternatively / additionally:

JS Off

-- 
Richard Porterhttp://www.minijem.plus.com/
Skype: minijem2   mailto:r...@minijem.plus.com
I don't want a "user experience" - I just want stuff that works.



Re: JavaScript status indicator - request for a snippet of code

2016-02-17 Thread John Williams
In article <60ac4d5355.iyoj...@rickman.argonet.co.uk>,
   John Rickman Iyonix  wrote:

> try this:

>  document.write("javascript is enabled"); 

Perfick, as HE Bates was prone to write!

Thank you.

John

-- 
| John Williams 
| joh...@ukgateway.net

 Names for Soul Band:- Soul Suppliers *



Re: JavaScript status indicator - request for a snippet of code

2016-02-17 Thread John Rickman Iyonix
John Williams  wrote


> 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.


try this:

 document.write("javascript is enabled"); 

John


-- 
John Rickman -  http://rickman.orpheusweb.co.uk/lynx
Doth not even nature itself teach you, that, if a man have long hair, 
it is a shame unto him? Saint Paul KJ



JavaScript status indicator - request for a snippet of code

2016-02-17 Thread John Williams

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 
| joh...@ukgateway.net

 Names for Soul Band:- Soul Doubt *