R: [Phplib-users] RE: javascript links (was: Auth working with a twist)
Brought to you by:
nhruby,
richardarcher
From: Gaetano G. <giu...@se...> - 2002-10-14 13:53:51
|
IMHO you might supply different (or the same) addresses to the href and = onclick tags, in order to satisfy browsers both with and without = javascript enabled...=20 Or am I completely wrong in doing this? Gaetano >=20 > I had not thought of that. Do you know if that is=20 > "officially" supported as > part of the HTML spec? Time to do some homework... > > > > > > IMHO, the correct way to do JavaScript links is > > > > <a href=3D"javascript:myFunction();">Blah</a> > > > > rather than using onClick. Creating a link to an undefined=20 > anchor is a > > kludge. I can't say that this will fix your problem, but=20 > the extra karma > > from cleaner code can't hurt. > > |