[Phplib-users] RE: javascript links (was: Auth working with a twist)
Brought to you by:
nhruby,
richardarcher
From: Rob H. <rob...@ws...> - 2002-10-14 13:41:49
|
I had not thought of that. Do you know if that is "officially" supported as part of the HTML spec? Time to do some homework... Rob Hutton Web Safe www.wsafe.com > -----Original Message----- > From: Layne Weathers [mailto:la...@if...] > Sent: Monday, October 14, 2002 9:30 AM > To: 'phplib-users' > Cc: rob...@ws... > Subject: javascript links (was: Auth working with a twist) > > > > <a href="#" onClick="document.all.innerFrameName.src = > > 'pagename.php?again=yes'; return true"> > > > > now it does not do the immediate refresh. I would expect this on one > > browser, but I was seeing it cross platform, cross browser. > > > > Now, the problem is if I change it to a # and click on it a > > second time, it > > does not do anything, but if I leave off the #, then it > > doesn't work at all > > on Mozilla or Netscape. AHHH! > > > IMHO, the correct way to do JavaScript links is > > <a href="javascript:myFunction();">Blah</a> > > rather than using onClick. Creating a link to an undefined anchor is a > kludge. I can't say that this will fix your problem, but the extra karma > from cleaner code can't hurt. > > > Layne Weathers > Ifworld Inc. > > > |