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

  • Home
  • SEARCH
  • 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 6905573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:12:00+00:00 2026-05-27T08:12:00+00:00

Is it possible that where the language of the script is not explicitly defined,

  • 0

Is it possible that where the "language" of the script is not explicitly defined, the JavaScript will not be executed?

<script type="text/javascript">

This piece of JavaScript which is embedded onto the JSP / HTML page.

  • 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-05-27T08:12:01+00:00Added an answer on May 27, 2026 at 8:12 am

    The MIME-Type of the file is set by the server. For JS files a MIME-Type of text/javascript should be returned. It’s not doing this here, that’s why you get the notice.

    The language property in <script> is deprecated.

    <script type="text/javascript">
    

    is correct.

    Also see: What is the difference between "lang" and "type" attributes in a script tag?

    The MIME-type is a header the server sends along with any file that is requested. The client is free to ignore it of course. Usually if your file is a *.js file your webserver will select the right MIME-type for you, if your file is a .jsp script that returns a JavaScripts file then you will likely need to set the MIME-type header yourself, this is fairly trivial in most languages, I wouldn’t know how to do it in JSP but in PHP it’s: header(“MIME-Type: text/javascript”); anywhere before you start echo’ing the actual content.

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

Sidebar

Related Questions

Is it possible that Microsoft will be able to make F# programs, either at
How is it possible that .NET is finding the wrong MyType in this scenario?
It is quite possible that I may not have got the point, but I
is it possible that my mingw 3.4.5 installation is faulty? or is this provided
It's possible that I'm not really understanding how git works here, but I have
I'm trying to write a piece of code that will do the following: Take
I'm trying to use Mechanize to capture a POST request which is not possible
<SCRIPT Language = JavaScript> function calculate() { a = 12 b = eval(document.form.number.value) c
Not sure this is possible but maybe you can help. I have a list,
I am not sure how to make an automaticed script that incrments all dates

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.