[Javascript] shortcuts
Michael Borchers
list at tridemail.de
Wed May 24 09:06:25 CDT 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?
More information about the Javascript
mailing list