middle click (new tabs) and javascript links

前端 未结 7 1887
温柔的废话
温柔的废话 2020-12-10 02:36

I am in charge of a website at work and recently I have added ajaxy requests to make it faster and more responsive. But it has raised an issue.

On my pages, there is

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 02:53

    The onclick event won't be fired for that type of click, so you need to add an href attribute which would actually work. One possible way to do this by adding a #bookmark to the URL to indicate to the target page what the required state is.

提交回复
热议问题