[Javascript] Keypress and a name jump

Guillaume javascript at webdesignofficina.com
Sat Jan 6 10:48:14 CST 2007


Nick that is working perfectly ( ff and Safari )... Not tested in Ie yet...
Href produces something totaly different but interesting: keypressing 
switches url...
Mike thanks for your answer... I did not test it as I have already 
several page templates, avoiding so to add ids manually...
Anyway, thanks for the both of you...

Regards.

Guillaume
> On 5 Jan 2007, at 17:29:05, Nick Fitzsimons wrote:
>
>>
>>    if (key == "t") { self.location.href = "#thereUgo"; }
>>
>
> Oops, that should be
>
> if (key == "t") { self.location.hash = "thereUgo"; }
>
> Doh!
>




More information about the Javascript mailing list