[thelist] javascript question

.jeff jeff at members.evolt.org
Wed Jul 17 19:44:01 CDT 2002


kevin,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Kevin
>
> A little issue. When I attempt to submit a form, the
> page jumps to the top and the form submission works. I
> am trying to find a solution that will keep the page
> from moving to the top.
>
> <a href="#" [...]
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

first, read this:

Links & JavaScript Living Together in Harmony
http://evolt.org/article/thelist/17/20938/

that should give you a healthy understanding of what's causing your jumping
problems.  however, *please* don't stop there.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> If I change the href="#" to href="javascript:;" - the
> form doesn't submit
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

you've got even bigger problems that are completely avoidable if you'd just
change your approach slightly.  to get a perspective on what the changes
might be, read this:

Forms & JavaScript Living Together in Harmony
http://evolt.org/article/thelist/17/28553/

enjoy,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/





More information about the thelist mailing list