How to Allow JavaScript Alerts to Show in Google Chrome

Make sure you have JavaScript turned on in the browser., Click the Customize and Control Google Chrome button in the top right corner of the browser (the icon with the 3 horizontal lines). , Select Settings from the drop down menu.    , Scroll to...

8 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Make sure you have JavaScript turned on in the browser.

    It is on by default, but it could have been changed by another user.

    If you're using your company's PC, it may have certain restrictions regarding the use of JavaScript. 
  2. Step 2: Click the Customize and Control Google Chrome button in the top right corner of the browser (the icon with the 3 horizontal lines).

    ,,,  A box with a list of settings will appear.

    Enable or Disable JavaScript is the last option.

    Select "Enable". , Once you have checked that JavaScript is enabled in your browser, open the JavaScript Console, which is part of the Chrome Developer Tools. , Select More tools
    --> Developer Tools, and it will open the console in the browser that you are currently using.

    Make sure the Console tab is selected. , If there is anything in the Console, type clear() and it will clear the Console. Type alert("Hello World");  and press enter.

    An alert box should pop up in the browser with the message you typed.

    You can put any words you want in between the quotes.

    If you want to add an alert to an html file you can add it by using a script tag.
  3. Step 3: Select Settings from the drop down menu.   

  4. Step 4: Scroll to the bottom and click Show advanced Settings. 

  5. Step 5:  Select Content Settings under Privacy.

  6. Step 6: Open the JavaScript Console.

  7. Step 7: Click the Icon on the right hand corner again.

  8. Step 8: Clear the Console.

Detailed Guide

It is on by default, but it could have been changed by another user.

If you're using your company's PC, it may have certain restrictions regarding the use of JavaScript. 

,,,  A box with a list of settings will appear.

Enable or Disable JavaScript is the last option.

Select "Enable". , Once you have checked that JavaScript is enabled in your browser, open the JavaScript Console, which is part of the Chrome Developer Tools. , Select More tools
--> Developer Tools, and it will open the console in the browser that you are currently using.

Make sure the Console tab is selected. , If there is anything in the Console, type clear() and it will clear the Console. Type alert("Hello World");  and press enter.

An alert box should pop up in the browser with the message you typed.

You can put any words you want in between the quotes.

If you want to add an alert to an html file you can add it by using a script tag.

About the Author

E

Eugene King

Eugene King has dedicated 9 years to mastering education and learning. As a content creator, Eugene focuses on providing actionable tips and step-by-step guides.

108 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: