开发者

Hyperlink (a href) with a pound sign at the end doesn't do anything in Firefox

开发者 https://www.devze.com 2023-01-03 16:18 出处:网络
I have a link that is somewhat like this: <a href=\"------.html#video\">Text</a> It works开发者_开发问答 fine in IE but not in Firefox. In Firefox it shows the new URL on the address ba

I have a link that is somewhat like this:

<a href="------.html#video">Text</a>

It works开发者_开发问答 fine in IE but not in Firefox. In Firefox it shows the new URL on the address bar but doesn't update or change anything in terms of content. Somehow the "#" is causing Firefox to ignore updating the page. I tried using Javascript "window.location" and "window.location.href" and all sorts of other things but it still doesn't work. Does anyone have any idea how to fix it? Thanks!


You'll need to make the link go to a different script page which will then redirect the browser back to the original page.


Press F5 / Ctrl+F5 to force Firefox to relaod the page. Firefox does not reload the page but only jumps to the html anker video that is defined in the link ...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号