Why does this not work?
- From: "Paul" <paul.dallaire@xxxxxxxxxxxx>
- Date: Tue, 12 Dec 2006 02:27:02 -0500
HI! I have a simple form and I use a image for the send button. but I am
trying to remove the "#" which causes the page to jump up before the send. I
use a work around to circumvent this but its causing the script not to
function and I don't know why.
This line below does not work.
<a href="javascript:;"
onclick="document.getElementById('form').submit()"><img src="images/new/send
button.jpg" alt="Send Now" width="54" height="22" border="0"></a>
This code does work.
<a href="javascript:;" class="hintanchor" onmouseover="showhint('Please
enter a valid email address. If you don\'t receive our newsletter then
please check your spam box.', this, event, '150px')">[?]</a>.
Basically a add the "javascript:;" instead of the "#" which causes the jump.
Paul
.
- Follow-Ups:
- Re: Why does this not work?
- From: Evertjan.
- Re: Why does this not work?
- Prev by Date: Javascript in your face, new blog
- Next by Date: Re: Literal Characters
- Previous by thread: Javascript in your face, new blog
- Next by thread: Re: Why does this not work?
- Index(es):