Enabling JavaScript
All the modern browsers come with built-in support for JavaScript. Frequently, you may need to enable or disable this support manually. This chapter explains the procedure of enabling and disabling JavaScript support in your browsers: Internet Explorer, Firefox, chrome, and Opera.
تأتي جميع المتصفحات الحديثة مع دعم مدمج لـ JavaScript. في كثير من الأحيان ، قد تحتاج إلى تمكين هذا الدعم أو تعطيله يدويًا. يشرح هذا الفصل إجراء تمكين وتعطيل دعم JavaScript في المستعرضات الخاصة بك: Internet Explorer و Firefox و chrome و 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 في Internet Explorer
فيما يلي خطوات بسيطة لتشغيل JavaScript أو إيقاف تشغيله في Internet Explorer - اتبع الأدوات ← خيارات الإنترنت من القائمة. حدد علامة التبويب الأمان من مربع الحوار. انقر فوق الزر "مستوى مخصص". قم بالتمرير لأسفل حتى تجد خيار البرمجة النصية. حدد زر الاختيار تمكين ضمن البرمجة النصية النشطة. أخيرًا انقر فوق "موافق" واخرج لتعطيل دعم JavaScript في Internet Explorer الخاص بك ، تحتاج إلى تحديد زر الاختيار تعطيل ضمن البرمجة النصية النشطة.
JavaScript in Firefox
Here are the steps to turn on or turn off JavaScript in Firefox −
Open a new tab → type about: config in the address bar.
Then you will find the warning dialog. Select I’ll be careful, I promise!
Then you will find the list of configure options in the browser.
In the search bar, type javascript.enabled.
There you will find the option to enable or disable javascript by right-clicking on the value of that option → select toggle.
If javascript.enabled is true; it converts to false upon clicking toogle. If javascript is disabled; it gets enabled upon clicking toggle.
JavaScript في Firefox
فيما يلي خطوات تشغيل JavaScript أو إيقاف تشغيله في Firefox - افتح علامة تبويب جديدة ← اكتب about: config في شريط العناوين. ثم ستجد مربع حوار التحذير. حدد سأكون حذرا ، أعدك! ثم ستجد قائمة خيارات التكوين في المتصفح. في شريط البحث ، اكتب javascript.enabled. ستجد هناك خيار تمكين أو تعطيل جافا سكريبت بالنقر بزر الماوس الأيمن على قيمة هذا الخيار ← حدد تبديل. إذا كان javascript.enabled صحيحًا ؛ يتحول إلى خطأ عند النقر فوق Google. إذا تم تعطيل جافا سكريبت ؛ يتم تمكينه عند النقر فوق التبديل.
JavaScript in Chrome
Here are the steps to turn on or turn off JavaScript in Chrome −
Click the Chrome menu at the top right hand corner of your browser.
Select Settings.
Click Show advanced settings at the end of the page.
Under the Privacy section, click the Content settings button.
In the "Javascript" section, select "Do not allow any site to run JavaScript" or "Allow all sites to run JavaScript (recommended)".
JavaScript in Opera
Here are the steps to turn on or turn off JavaScript in Opera −
Follow Tools → Preferences 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 the Enable JavaScript checkbox.
JavaScript في Opera فيما يلي خطوات تشغيل JavaScript أو إيقاف تشغيله في Opera - اتبع Tools → Preferences من القائمة. حدد خيار متقدم من مربع الحوار. حدد المحتوى من العناصر المدرجة. حدد مربع الاختيار Enable JavaScript. أخيرًا انقر فوق موافق واخرج. لتعطيل دعم JavaScript في Opera الخاص بك ، يجب ألا تحدد مربع الاختيار Enable JavaScript.
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 −
إذا كان عليك القيام بشيء مهم باستخدام JavaScript ، فيمكنك عرض رسالة تحذير للمستخدم باستخدام علامات <noscript>. يمكنك إضافة كتلة noscript مباشرة بعد كتلة البرنامج النصي كما يلي -
<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 the message from </noscript> will be displayed on the screen.
الآن ، إذا كان متصفح المستخدم لا يدعم JavaScript أو لم يتم تمكين JavaScript ، فستظهر الرسالة من </noscript> سيتم عرضها على الشاشة
تعليقات
إرسال تعليق