eHow launches Android app: Get the best of eHow on the go.

How To

How to Use HREF JavaScript Links

Contributor
By eHow Contributing Writer
(3 Ratings)

HREF JavaScript links are used to create dynamic web pages. HREF JavaScript links offer visitors the ability to interact with a web page. This allows users the ability to update some contents, navigate from page to page and open new windows. HREF JavaScript links are commonly used in websites that require high interactivity such as forums, games and chat rooms.

Difficulty: Moderate
Instructions
  1. Step 1

    Open your web page editor. A web page editor is a program such as Dream Weaver, Front Page and NVU. Open the page you want to add JavaScript to.

  2. Step 2

    Add an HREF JavaScript button to your web page. Click on "Insert," then "Button" and choose "JavaScript" from the choices provided. Insert the parameters for the button such as what it will link to, what application it will perform and what the button will look like.

  3. Step 3

    Connect HREF JavaScript links to text that appears on your web page. Find the text you want to link the JavaScript to. In front of the text, type in ". After the text, type in . "Xxx" represents the function you want the JavaScript to perform. Be sure to replace the "xxx" with the actual function.

  4. Step 4

    Insert multiple HREF JavaScript links in a page quickly. Include a header that will activates the HREF Javascripts. Type in
    .

  5. Step 5

    Save the web page when you finish adding the script.

Tips & Warnings
  • Always test JavaScript in a browser so you can change items as needed.
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics