Re: A tag: href vs. onClick
VK said the following on 10/26/2005 1:43 PM:[color=blue]
> Matt Silberstein wrote:
>[color=green]
>>So, instead of referencing #, should one put an anchor at the link and
>>reference that? That is, make the non-JavaScript link just go right
>>were it is?[/color]
>
>
> You just going right by middle 90's road. This is how first JavaScript
> programmers had to twist their minds. If you would *read my posts in
> this thread* you'll see the self-linked link mentioned. As it said
> where,
> <a href="#foo" name="foo"> trick is not usable neither for two reasons:
>
> 1) It crashes IE 3.x / IE 4.x which is not important anymore though[/color]
Does this crash them:
<a href="#foo">Lin k Text</a><a name="foo">
?
[color=blue]
> 2) On a big page it still scrolls, so the self-linked link would be
> placed at the top of the page.[/color]
Top of the page or top of the viewport? I think it would scroll to the
top of the viewport, instead of top of the page. I think that is what
you meant.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
VK said the following on 10/26/2005 1:43 PM:[color=blue]
> Matt Silberstein wrote:
>[color=green]
>>So, instead of referencing #, should one put an anchor at the link and
>>reference that? That is, make the non-JavaScript link just go right
>>were it is?[/color]
>
>
> You just going right by middle 90's road. This is how first JavaScript
> programmers had to twist their minds. If you would *read my posts in
> this thread* you'll see the self-linked link mentioned. As it said
> where,
> <a href="#foo" name="foo"> trick is not usable neither for two reasons:
>
> 1) It crashes IE 3.x / IE 4.x which is not important anymore though[/color]
Does this crash them:
<a href="#foo">Lin k Text</a><a name="foo">
?
[color=blue]
> 2) On a big page it still scrolls, so the self-linked link would be
> placed at the top of the page.[/color]
Top of the page or top of the viewport? I think it would scroll to the
top of the viewport, instead of top of the page. I think that is what
you meant.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Comment