[thelist] href=# versus href=JavaScript.....
Rob Keniger
rob at bigbang.net.au
Thu Feb 22 03:17:43 CST 2001
on 22/2/01 4:37 PM, rudy at r937 at interlog.com wrote:
> as the javascript protocol is misunderstood by some early browsers, another
> good html solution goes a little further than just one common <a
> name=top></a> target for all such links, and makes a separate target for
> each which is located just ahead of where the link is
>
> for example
>
> <a name=foo></a>
> <h4>Foo</h4>
> <a href="#foo" onClick=".....">something</a>
This got me thinking - is there any reason you couldn't do this:
<a name="foo" href="#foo" onClick=".....">something</a>
...and get rid of the extra anchor?
--
Rob Keniger
big bang solutions
<mailto:rob at bigbang.net.au>
More information about the thelist
mailing list