Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7913943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:57:44+00:00 2026-06-03T13:57:44+00:00

So, my team is using the HTML5 Boilerplate and has the site nearly finished.

  • 0

So, my team is using the HTML5 Boilerplate and has the site nearly finished. I want to do a quick JavaScript test to make sure the client can add their own JavaScript if they so desire. I know the type attribute for the script tag is not required when using the HTML5 doctype, but the JavaScript alert doesn’t even work when it’s used (which is what has me confused as I’ve built HTML5 sites while using the type attribute in the script tag.

What works:

    <script>        
      alert("HELP");        
    </script>

What doesn’t work:

    <script type="text/javascript">     
      alert("HELP");        
    </script>

Can anyone explain what’s going on? This DOES work for other HTML5 based websites…

***Tested with Firefox 12 on Ubuntu 12.04

Thanks guys.

P.S. It’s not going to make or break the site, is not very important, etc. I was just wondering why this problem exists.

EDIT

Here’s a link to a publically hosted page that WORKS.

http://illinois.edu/1500/index.html

Why does it not work on my local box (shakes head)…?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T13:57:44+00:00Added an answer on June 3, 2026 at 1:57 pm

    Both versions are correct and should work. Either there’s a problem in your code like a missing tag or more likely you’ve checked the “Prevent this page from creating aditional dialogs” checkbox.

    Replace your alerts with this and try it out in Chrome:

    <script type="text/javascript">
    console.log('HELP');
    </script>
    <script>
    console.log('HELP');
    </script>
    

    Now run the page in Chrome, press F12 go to Console and see if the messages pop up

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are starting to create an application using JavaScript and HTML5 which will use
I am working with a team using Eclipse to develop for android. We often
How would you go about introducing acceptance tests into a team using the Spring
My team is using Entity Framework 4.3.0 - Code Only with POCO classes as
I am using Team City as the build server, and I have a msbuild
My team's using a python-based wiki server that calls stored procedures on a SQL
We've been using Team City as our build deployment server. We'd like to now
What is the best way to run silverlight unit tests automatically using team city?
I'm using VS Team System 2008 and gonna install VS 2010 Express editions.
I'm trying to install Team Foundation Server using 2 machines: Machine1 : OS: Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.