I am creating an html page. I had to do a quick 1-line test, which if the user turned on javascript, says "javascript on" otherwise says "javascript off" to tell them.
How can i do this?
<div id="js_onoff">JavaScript off :(</div> <script> document.getElementById("js_onoff").innerHTML = "JavaScript on, yeah! :)"; </script>
<script type="text/javascript">document.write('JavaScript On');</script> <noscript>JavaScript Off</noscript>
May be,?
There will be many options.
Source: https://habr.com/ru/post/1787801/More articles:Rails: dynamically iterate over params hash parameters to make sure they exist - ruby-on-railsCall DLL with pointers in Delphi - pointersVisual Studio 2010: breakpoints do not work after recovery - debuggingApplying rotate CSS transform to an element using @ font-face - htmlWhere is node.js located in the client web server thread ↔? - javascriptCan I check if there is the next page in the browser history with Javascript? - javascriptAn elegant way for this interface to work? - c #Tracking external links with Google Analytics trackPageview () does not work - analyticsUnable to import wx (Python) on Mac OS X - pythonWhere to find java class files created by delayed binding GWT? - gwtAll Articles