[vox] New, improved Tux Paint site!

Rod Roark vox@lists.lugod.org
Thu, 11 Mar 2004 20:56:21 -0800


On Thursday 11 March 2004 08:22 pm, Bill Kendrick wrote:
> On Thu, Mar 11, 2004 at 11:45:31AM -0800, Rod Roark wrote:
> > 
> > While you're at it, you might wrap the "Enter" image in a
> > dummy "<a href=" tag so the mouse cursor looks like it's a
> > link when you mouse over it.
> 
> If I do that, then it seems to override the 'onClick' submit JavaScript
> crap I've got going there.  e.g., if I do:
> 
>   <a href="index2.php3"><img src...
> 
> it just goes to "index2" without submitting the user's choice for language.

As I recall if your onClick script ends with "return false;"
then the URL is not submitted.  The way I usually do this is
with something like:

<a href="nojs.html" onclick="return blah()">Click Me</a>

where nojs.html is something to display if JavaScript is not
enabled, and blah() always returns false.

-- Rod