[thelist] return false... but still scrolling

Jonathan Snook jonathan.snook at gmail.com
Sun Jun 24 20:19:17 CDT 2007

On 6/24/07, Brian Cummiskey <brian at hondaswap.com> wrote:
> i'm using a simple:  <a href="#" onclick="setcolor('thecolorcode');
> return false;">IMAGE</a>
> for lack of a better idea.
> this 'link' is below the fold on my resolution.  but when clicked, the
> page scrolls up to # (aka, the top) and also alters the URL to include
> the # in it.
> I thought the return false stopped this from happening?   Am i missing
> something obvious?

If there's an error in your script, it'll stop executing the script
and in this case, never get to return false. Are you getting any JS

More information about the thelist mailing list