

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 Questions & Answers
- 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 to Detect if CAPS Lock is ON using JavaScript?
- How can you detect the version of a browser using Javascript?
- JavaScript: How to Detect if a Website is Open on a Mobile or a Desktop?
- 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?
- Checking if a button is enabled or disabled in SAP Application
- How to detect if an iOS application is in background or foreground?
- How to detect a mobile device with JavaScript?
- How to know the browser language and browser platform in JavaScript?
- How do I detect if a table exist in MySQL?
- How to detect if a user is using an Android tablet or a phone using Kotlin?
- How to detect if a MySQL database structure changed (not content)?
Advertisements