激活链接 [英] activating a link

查看:75
本文介绍了激活链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个链接,我通过accesskey关注。


< a href =" blah" IE中的访问权限= p>


,它只是让它集中注意力,但不会激活它。


如何激活链接。


thx。

i''ve got a link that i give focus to via accesskey.

<a href="blah" accesskey=p>

in IE, that just gives it focus, but does not activate it.

how do i activate the link.

thx.

推荐答案

ppcguy写道:
我已经得到了一个链接,我通过accesskey关注。

< a href =" blah" IE中的accesskey = p>

只是让它集中注意力,但不会激活它。
如何激活链接。
i''ve got a link that i give focus to via accesskey.

<a href="blah" accesskey=p>

in IE, that just gives it focus, but does not activate it.
how do i activate the link.




下面的解决方案有点笨拙,但它适用于Firefox和

IE 6. FF直接在链接上接受访问密钥(访问密钥= h

用于测试目的)。 FF还可以让你做

style =" visibility:hidden"在按钮元素而不是

style =" width:0px"。我希望使用这种方法是对IE的一部分进行监督,并且不会太依赖它。


< form action = ''http://google.com''method = get>

< button type = submit style =" width:0px" accesskey = g>< / button>

< a href =" http://google.com" accesskey = h>< u> G< / u> oogle< / a>

< / form>


来自维也纳的Csaba Gabor




ppcguy写道:

ppcguy wrote:
我有一个链接,我通过accesskey给焦点。

< a href =" blah" IE中的accesskey = p>

只是让它集中注意力,但不会激活它。

如何激活链接。
i''ve got a link that i give focus to via accesskey.

<a href="blah" accesskey=p>

in IE, that just gives it focus, but does not activate it.

how do i activate the link.




< a href =" http://www.google.com"

accesskey =" t"

onfocus =" ; location.href = this.href">测试< / a>


这包括两者。



<a href="http://www.google.com"
accesskey="t"
onfocus="location.href=this.href">Test</a>

That covers both.


VK写道:
ppcguy写道:
我有一个链接,我把重点放在通过accesskey。

< a href = QUOT;等等" IE中的accesskey = p>

只是让它集中注意力,但不会激活它。

如何激活链接。
i''ve got a link that i give focus to via accesskey.

<a href="blah" accesskey=p>

in IE, that just gives it focus, but does not activate it.

how do i activate the link.



< a href =" http://www.google.com"
accesskey =" t"
onfocus =" location.href = this.href"> Test< ; / a>

这涵盖了两者。



<a href="http://www.google.com"
accesskey="t"
onfocus="location.href=this.href">Test</a>

That covers both.




Ahem。让我们希望用户不是tab键的粉丝。如果他们是,那么他们有点意外。更不用说点击

链接并在释放按钮之前移开鼠标。


Csaba



Ahem. Let''s hope the users are not fans of the tab key. If they are,
they are in for a bit of a surprise. Not to mention clicking on the
link and moving the mouse away before releasing the button.

Csaba


这篇关于激活链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆