Easiest way I can think of:
<html>
<head>
<noscript><style> .jsonly { display: none } </style></noscript>
</head>
<body>
<p class="jsonly">You are a JavaScript User!</p>
</body>
</html>
No document.write, no scripts, pure CSS.
More Related Contents:
- How do I access the link to the content? [closed]
- javascript “if” statement returning false value when both values are equal
- How to detect if JavaScript is disabled?
- How to get an HTML element’s style values in javascript?
- Detect all changes to a (immediately) using JQuery
- How to set an iframe src attribute from a variable in AngularJS
- When should I use Inline vs. External Javascript?
- Using HTML5/JavaScript to generate and save a file
- Disable form auto submit on button click
- Pass vars to JavaScript via the SRC attribute
- Convert SVG to PNG with applied images as background to svg elements
- Get caret position in HTML input?
- HTML input type=file, get the image before submitting the form
- How to ensure a form field is submitted when it is disabled?
- jQuery: how to change tag name?
- Use a new CSS file to override current website’s
- tag vs tag
- In Javascript, how do I “clear” the back (history -1)?
- Remove x-axis label/text in chart.js
- Is it possible to use HTML’s .querySelector() to select by xlink attribute in an SVG?
- Onresize for div elements?
- WebRTC video is not displaying
- Is there a way to curve / arc text using CSS3 / Canvas
- How to filter input type=”file” dialog by specific file type?
- How can I request an increase to the HTML5 localstorage size on iPad, like the FT web app does?
- Convert dropdown to selection boxes with color and trigger drop down action
- Javascript click event handler – how do I get the reference to the clicked item?
- Polymer 1.0 Global Variables
- How to access css properties in javascript when applied via external CSS file?
- Cross-Origin resource sharing and file://