How to Use HREF JavaScript Links
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.
Instructions
-
-
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
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
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
Insert multiple HREF JavaScript links in a page quickly. Include a header that will activates the HREF Javascripts. Type in
. -
5
Save the web page when you finish adding the script.
-
1
Tips & Warnings
Always test JavaScript in a browser so you can change items as needed.