Wednesday, 17 February 2016

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

In article <b067675355.ricp@user.minijem.plus.com>,
Richard Porter <ricp@minijem.plus.com> wrote:

> > <script> document.write("javascript is enabled"); </script>

> alternatively / additionally:

> <noscript>JS Off</noscript>

Excellent!

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

?>
<script> document.write("<font color=red>JavaScript is
enabled!</font><br>"); </script>
<noscript>JavaScript is disabled<br></noscript>
<?php

Thank you both!

John

--
| John Williams
| johnrw@ukgateway.net

I am NOT argumentative! *

No comments:

Post a Comment