[Phplib-users] javascript links (was: Auth working with a twist)
Brought to you by:
nhruby,
richardarcher
From: Layne W. <la...@if...> - 2002-10-14 13:14:52
|
> <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. |