I want to make a "JavaScript Required" div that automatically hides if the user has JavaSscript enabled. So if the user has JS disabled, then the div will display, and show "JavaScript Required". For everyone else with JavaScript enabled, it will be hidden. How can I do this?
here is the code!! <body onload="hjs()"> <script language="javascript" type="text/javascript"> function hjs() { document.getElementById("js").innerHTML = ""; } </script> <div id="js">Please Enable Javascripting....</div> </body> HTML: if you find my post helpful try to donate! $ 1-2-3
No JavaScript code is required to do this. Just add a <noscript> tag: <noscript><div>JavaScript Required</div></noscript> HTML:
That is so nice collection.Well after finding your this comment there is no need for any book reading search of last few years.I like your idea for distributing the books by years.
These days javascript is a MUST, having it disabled is just not an option. honestly, I wouldn't even bother.