Tutorials Point


  JavaScript Basics
  JavaScript Objects
  JavaScript Advanced
  JS Useful References
  JS Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

Enabling JavaScript in Browsers


previous next AddThis Social Bookmark Button


Advertisements

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

This tutorial will make you aware the procedure of enabling and disabling JavaScript support in your browsers : Internet Explorer, Firefox and Opera.

JavaScript in Internet Explorer:

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

  1. Follow Tools-> Internet Options from the menu

  2. Select Security tab from the dialog box

  3. Click the Custom Level button

  4. Scroll down till you find Scripting option

  5. Select Enable radio button under Active scripting

  6. Finally click OK and come out

To disable JavaScript support in your Internet Explorer, you need to select Disable radio button under Active scripting.

JavaScript in Firefox:

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

  1. Follow Tools-> Options

    from the menu
  2. Select Content option from the dialog box

  3. Select Enable JavaScript checkbox

  4. Finally click OK and come out

To disable JavaScript support in your Firefox, you should not select Enable JavaScript checkbox.

JavaScript in Opera:

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

  1. Follow Tools-> Preferences

    from the menu
  2. Select Advanced option from the dialog box

  3. Select Content from the listed items

  4. Select Enable JavaScript checkbox

  5. Finally click OK and come out

To disable JavaScript support in your Opera, you should not select Enable JavaScript checkbox.

Warning for Non-JavaScript Browsers:

If you have to do something important using JavaScript then you can display a warning message to the user using <noscript> tags.

You can add a 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 user's browser does not support JavaScript or JavaScript is not enabled then message from </noscript> will be displayed on the screen.



previous next Printer Friendly

Advertisements


  

Advertisements