Enabling JavaScript in Browsers

Enabling JavaScript in Browsers

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:

Follow Tools-> Internet Options from the menu

Select Security tab from the dialog box

Click the Custom Level button

Scroll down till you find Scripting option

Select Enable radio button under Active scripting

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:

Follow Tools-> Options from the menu

Select Content option from the dialog box

Select Enable JavaScript checkbox

Finally click OK and come out

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

JavaScript in Opera:

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

Follow Tools-> Preference from the menu

Select Advanced option from the dialog box

Select Content from the listed items

Select Enable JavaScript checkbox

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.

 

ليست هناك تعليقات:

إرسال تعليق