Links

<a href=location_url
(Where to go)

target=frame_name
(Which frame or window to put it in)

onClick=method_name
(When clicked, call a function.  Browsers often use this themselves.)

onMouseOver=method_name
(When mouse comes over the link, call function.)

onMouseOut=method_name
(When mouse leaves the link, call function.)
>



Link text
(Text that is part of the link.)
</a>


Example with image instead of text & functions called on mouseover & mouse out:  The border=0 in the image turns off the like around the image that the link would normally create.

<a href=# onmouseover="Wag(true)"onmouseout="Wag(false)">
  <center>
  <img name="dog" src="img/harv1.jpg"
       alt="(Dog that wags its tail when mouse is over)"
       width=98 height=153border=0align=left>
  </center>
</a>

Example with function call on click:

<a href="javascript:"alert('text to display')">

Targets

_top
Load into the current window
_parent
Load into the parent frame
_self
Load into the current frame
_blank
Load into a new window
frame_name
Load into the specified frame

Defaults

<base href="http://www.oocities.org/rick_clements/"target="_top">

Base allows the base html address and/or the default target to be set.  If href is used, relative paths are relative to the base instead of the current directory.  (Note: "./" should override this.)  If target is used, the default target will be set.  If it's not used, _self is the default.



Last Updated: $Date: 2003/11/09 11:08:23 $ GMT ($Revision: 1.3 $)