Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] shortcuts


  • From: list at tridemail.de (Michael Borchers)
  • Subject: [Javascript] shortcuts
  • Date: Wed May 24 09:05:05 2006

> On Wed, May 24, 2006 at 03:18:25PM +0200, Michael Borchers wrote:
>> i want to offer a navigation via shotcuts.
>> i did it this way so far:
>> 
>> <a href="#" onfocus="javascript:redirectByShortcut('<?php echo 
>> CONTACTS_FILENAME; ?>?select=1');" accesskey="c"></a>
>> 
>> function:
>> function redirectByShortcut(redirectUrl)
>> {
>> top.location.href = redirectUrl;
>> }
> 
> Wouldn't it be rather easier and more reliable to just:
> 
> <a href="<?php echo CONTACTS_FILENAME; ?>?select=1" 
>   target="_top" 
>   accesskey="c">link text</a>

the links appear somewhere else in a dropdown where i can't
add a accesskey. that's why i considered to use hidden fields.
is it possible?