Re: Slightly off topic Javascript question

by "Debra Sawyers" <dsawyers(at)ptd.net>

 Date:  Mon, 3 Jul 2000 21:51:18 -0400
 To:  <hwg-basics(at)hwg.org>
 References:  infoave
  todo: View Thread, Original

> <input type="image" value="  BACK  " onClick="history.go(-1)"
> src="back_but.gif" name="BACK" width="130" height="24">
>
> Works fine!  Then I decided that I would be cute and include a OnMouseOver
> event that would make the button look like it was being pushed down.  I
> couldn't find anything at my normal sites for hints so I tried a couple of
> things and cannot get anything to work.  Does anyone know if an
OnMouseOver
> event can be tied with and INPUT type?  If yes can you point me in the
> right direction?
>

Not to worry....You're already using an image for your "button", so you
really don't need it to be in an INPUT for any reason do you??  Put your
back into an A tag and then use your mouseover like you normally would

<A HREF="javascript:history.go(-1)"
    onMouseOver=........><IMG SRC="back_but.gif" BORDER="0"></A>

and it should work just fine.

Deb

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA