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 712957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:54:27+00:00 2026-05-14T04:54:27+00:00

Disregard this question: I’ve simply confused <script src=…></script> tag and <script> [some functions] </scipt>

  • 0

Disregard this question: I’ve simply confused <script src="..."></script> tag and <script> [some functions] </scipt> tags.

I have this function

function OnLoad()
{
    ShowHideConfirmAnswers();

    return true;
}

triggered by onload event:

<body onload=OnLoad()>

It works fine until I add src=”jquery-1.4.2.js” to the script element. From this moment I get “OnLoad is not defined” error, and the same happens to every other javascript function.

  • 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-14T04:54:27+00:00Added an answer on May 14, 2026 at 4:54 am

    It works fine until I add src=”jquery-1.4.2.js” to the script element.

    This line makes me think you’re using a script element like this:

    <script type="text/javascript">
        //... all code here
    </script>
    

    And then you’re adding the src attribute to the element:

    <script type="text/javascript" src="jquery-1.4.2.js">
        //... all code here
    </script>
    

    Which won’t work. Once you add the src attribute to a <script> element, all data contained within the script element will be completely ignored by the browser. You have to use separate script tags for external and inline javascript:

    <script type="text/javascript" src="jquery-1.4.2.js"></script>
    <script type="text/javascript">
        //... all code here
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit: Disregard this question! See comments below. I want an OCaml expression which is
I have a feeling that this is a subjective question, but perhaps there's something
UPDATE: This question is outdated, please disregard So.. my idea is to load a
(Please disregard any security concerns you may have with this approach, I have a
This is a question about setting our website's Language and Culture settings with regards
Yet another Scrabble project question... This is a simple one. It seems I am
For example, if ı have lines like this: $this->db->where(blabla,$blala); And following this line, I
I just want to pull. I have changes to disregard, my Gemfile and Gemlock
I have a list of documents that start like this... MR 100 12.12.10 MR
(Sorry if this is a really long question, it said to be specific) The

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.