5
readers helped!

This helped me

How to Allow JavaScript Alerts to Show in Google Chrome

Are you having trouble with your Google Chrome alerts not showing up? This article will show you how to enable / disable JavaScript in Google Chrome and then check it’s working by displaying an alert dialogue box using the JavaScript console.

Part 1
Part 1 of 2:

Enabling JavaScript

  1. How.com.vn English: 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. How.com.vn English: Step 2 Click the Customize...
    Click the Customize and Control Google Chrome button in the top right corner of the browser (the icon with the 3 horizontal lines).
  3. How.com.vn English: Step 3 Select Settings from the drop down menu.
       
  4. How.com.vn English: Step 4 Scroll to the bottom and click Show advanced Settings.
     
  5. How.com.vn English: Step 5  Select Content Settings under Privacy.
     
    • A box with a list of settings will appear. Enable or Disable JavaScript is the last option. Select "Enable".
    Advertisement
Part 2
Part 2 of 2:

Checking It With a Console Alert

  1. How.com.vn English: Step 1 Open the JavaScript Console.
    Once you have checked that JavaScript is enabled in your browser, open the JavaScript Console, which is part of the Chrome Developer Tools.
  2. How.com.vn English: Step 2 Click the Icon on the right hand corner again.
    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.
  3. How.com.vn English: Step 3 Clear the Console.
    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.
    Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit

      Advertisement

      Tips

      • JavaScript is very sensitive to typos, and is also case sensitive, so if something is not working, check to make sure your syntax is correct and you are not missing anything such as a closing quote or a semicolon.


      Advertisement

      About this article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 78,818 times.
      How helpful is this?
      Co-authors: 7
      Updated: July 9, 2016
      Views: 78,818
      Thanks to all authors for creating a page that has been read 78,818 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement