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

How to turn JavaScript on or off in your browser_Basics

WBOY
WBOYOriginal
2016-05-16 15:56:591248browse

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 2b0b25ff593c5b6c03403dd6234ffb2c tag.

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>

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

Statement:
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