简体   繁体   English

<a href=“..”>第一次点击不起作用,但在FF中第二次点击起作用,在IE中工作正常</a>

[英]<a href=“..”> doesn't work at first click but works at second click in FF, in IE works fine

I have 我有

<td class="TableContent">
    <bean:message key="image.arrow.link" />
    <a href="#Link"><bean:message  key="text.linkinfo"/></a><br>
</td>

and

<a name="Link"><bean:message key="text.linkinfo"/></a>

When I first click on the link in FF the page just reloads and when clicking again after this it goes to where it should. 当我第一次单击FF中的链接时,页面会重新加载,然后在此之后再次单击时,它将转到应有的位置。

Any ideas how can I fix this? 任何想法我该如何解决?

It seems there is a problem with using base tag and relative href in my case. 在我的情况下,使用基本标记和相对href似乎存在问题。 I fixed the problem on all browsers (IE, FF, Chrome, Safari) using the entire link address. 我已使用整个链接地址在所有浏览器(IE,FF,Chrome,Safari)上解决了该问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 <a href doesn't fire after .Click jquery function call in IE. Works fine with Chrome and FF - <a href doesn't fire after .Click jquery function call in IE. Works fine with Chrome and FF 首次点击会显示验证错误,并且无效。 第二次点击就可以了 - First Click shows validation error and doesn't work. Second click it works fine innerHTML 在第一次单击按钮时有效,但在第二次单击时无效 - innerHTML works on first button click but doesn't work on second click iFrame 在 Chrome 中不起作用(在 FF、IE 和 Safari 中工作正常) - iFrame doesn't work in Chrome (works fine in FF, IE and Safari) javascript中的click()无法正常运行,但在控制台中可以正常运行 - click() in javascript doesn't work but in console it works fine 在IE 9之前无法使用的Javascript / jquery代码在FF,Chrome,Safari中正常运行 - Javascript/jquery code that doesn't work prior to IE 9. Works fine in FF, Chrome, Safari 第一次单击无法初始化我的变量,但第二次单击可以 - Initializing my variable doesn't works by first click, but by second click it works 功能仅在第二次单击时有效,然后可以正常工作吗? - Function only works on second click, then works fine? 内部html在ie中不起作用,但在ff中起作用 - inner html doesn't work in ie but works in ff 苹果浏览器表单验证仅在第二次单击按钮时有效,但在IE 1次单击本身中可以正常工作 - safari form validation works only in second button click, but works fine in IE 1st click itself
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM