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

The Archive Base Latest Questions

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

I am fairly new to JS, trying to set up a document which would

  • 0

I am fairly new to JS, trying to set up a document which would use two scripts, in separate files. One js would generate initial content on the page, another would define the page behavior.

For example, first script should generate a blue box with the word “Blue” inside it.
Second script, should change the color and word to green.

I am not sure how to integrate the scripts into the HTML? Do I specify something in the style block? How to I link files together and how do I use XML events?

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

    You can have as js in one file or even embedded within HTML.

    Also regarding first part Initialising you can call js function like this which executes as the browser encounters it…

    <script> init_func(); </script>
    

    And the other function can be called on event such as click or timeout.

    You can include 1 or mor js files in a web page.

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

Sidebar

Related Questions

I'm fairly new to working with threads. I was trying to set a DependencyProperty
I'm fairly new to Facebook's Graph API. I'm trying to use their Graph API
I am fairly new Akka world and was trying to use akka-spring integration. I
I'm fairly new to SQL and was trying to write a procedure that would
I fairly new to JQuery and perhaps trying to achieve something that might be
I'm fairly new to ASP.NET and trying to learn how things are done. I
I am fairly new to c# and am trying to write a n-tiered web
i'm fairly new to django and just trying a couple simple experiments to get
I'm fairly new to iPhone programming and am trying to implement a double-component PickerView.
I'm fairly new to JQuery and I'm trying to add multiple form fields for

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.