
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
How to detect if JavaScript is disabled in a browser?
To detect if JavaScript is disabled in a web browser, use the <noscript> tag. The HTML <noscript> tag is used to handle the browsers, which do recognize <script> tag but do not support scripting. This tag is used to display an alternate text message.
Here’s an example,
<!DOCTYPE html> <html> <head> <title>HTML noscript Tag</title> </head> <body> <script> <!-- document.write("Hello JavaScript!") --> </script> <noscript> Your browser does not support JavaScript! </noscript> </body> </html>
- Related Articles
- How to detect that JavaScript Cookies are disabled?
- How to detect whether the browser is online or offline with JavaScript?
- How to redirect if JavaScript is not enabled in a browser?
- How can you detect the version of a browser using Javascript?
- How to Detect if CAPS Lock is ON using JavaScript?
- How to check if CSS property is supported in browser using JavaScript?
- JavaScript: How to Detect if a Website is Open on a Mobile or a Desktop?
- How to check if CSS property is supported in the browser using JavaScript?
- How to check the current runtime environment is a browser in JavaScript?
- How to know the browser language and browser platform in JavaScript?
- How to detect if a given year is a Leap year in Oracle?
- JavaScript: How to return True if the focus is on the browser tab page?
- How to Detect User Timezone in JavaScript?
- How to detect a mobile device with JavaScript?
- How to detect the browser's format for HTML input type date

Advertisements