This Season
 

How to Install Website Scripts

How to Install Website Scriptsthumbnail
Install Website Scripts

Website JavaScript scripts provide you with a way to alter content on your Web pages after users load the page in their browsers. This means the scripts let you create dynamic client-side code that run on a browser and not your Web server. You must upload the JavaScript scripts to your website host and include the script in your Web page's HTML code to install it on the pages. You must include the JS scripts in each page on which you want to use the JavaScript functions.

Related Searches:
    Difficulty:
    Moderate

    Instructions

    Things You'll Need

    • A website
    • Cpanel hosting
    • basic ftp knowledge
      • 1

        Upload your JS script to your host provider. Each host provider has its own way to upload files. Usually you must use the host's Web app to upload the file. Remember the directory in which you stored your script.

      • 2

        Right-click the HTML page you want to use to call the script's functions. Click "Open With," and then click your HTML editor in the list of programs.

      • 3

        Add the following code between your "<head>" and "</head>" tags:

        <script src="file.js"> </script>

        Replace "file.js" with your own JavaScript file location and file name.

      • 4

        Call the JavaScript functions. For instance, if the file contains a function named "myFunction," use the following code to call the script function:

        myFunction();

      • 5

        Save the changes to your HTML file and upload the new code to your host provider.

    Tips & Warnings

    • Take it slow

    • Follow all the instructions

    • keep a backup of all your scripts

    • Make sure your webhost can handle the scripts functions

    • Before you install a script, make sure you know what it does, and what you need it for =).

    Related Searches

    References

    Read Next:

    Comments

    You May Also Like

    Follow eHow

    Related Ads