Home > Web Front-end > JS Tutorial > How to turn JavaScript on or off in your browser_Basics

How to turn JavaScript on or off in your browser_Basics

WBOY
Release: 2016-05-16 15:56:59
Original
1282 people have browsed it

All modern browsers use built-in support for JavaScript. Many times, you may need to enable or manually disable this support.

This tutorial will let you know how to enable and disable JavaScript support in your browsers: Internet Explorer, Firefox and Opera.
JavaScript in Internet Explorer (IE):

Here are simple steps to turn JavaScript on or off in your Internet Explorer:

  • Follow the menu "Tools" - > "Internet Options"
  • Select the "Security" tab from the dialog box
  • Click the "Custom Level" button
  • Scroll down until you find "Script Options"
  • Select the Enable "Active Scripting" radio button
  • Finally click "OK" and then exit

To disable JavaScript support in Internet Explorer, select the "Disable" radio button in "Active Scripting".
JavaScript in Firefox:

Here are the simple steps to turn JavaScript on or off in Firefox:

  • From the menu, click "Tools" ->"Options"
  • From the "Content" option in the dialog box
  • Select the Enable JavaScript checkbox
  • Finally click OK and exit

To disable Firefox’s JavaScript support, the Disable JavaScript checkbox should be selected.
JavaScript in Opera:

Here are the simple steps to turn JavaScript on or off in Opera:

  • From the menu click "Tools" -> "Preferences"
  • Select the "Advanced" option in the dialog box
  • Select "Content" from the listed items
  • Select the Enable JavaScript checkbox
  • Finally click "OK" and then exit

To disable JavaScript support in Opera, uncheck the Enable JavaScript checkbox.
Warning for non-JavaScript browsers:

If you are using JavaScript to do something important, you can display a warning message to the user using the

You can add the noscript noscript block immediately after the script block as follows:

<html>
<body>

<script language="javascript" type="text/javascript">
<!--
  document.write("Hello World!")
//-->
</script>

<noscript>
 Sorry...JavaScript is needed to go ahead.
</noscript>
</body>
</html>

Copy after login

Now, if the user's browser does not support JavaScript or JavaScript is not enabled, then a message will be displayed on the screen.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template