Disable Opening New Window or New Tab by holding down on a link

前端 未结 4 716

I want to thanks those who are currently reading this and for your time. Let\'s go straight to the topic!

I am currently trying to disable a feature where a user sho

4条回答
  •  遥遥无期
    2021-01-19 07:28

    You'd probably want to use some JavaScript to load the new contents into the existing page. But that will mean that your site will not have any history (unless you add it in manually), so it will break navigation, and then there's no guarantee that the user will just copy and paste the URL into a new window or tab anyway.

    In essence if you need to disable a fundamental Operating System (yes, for websites the Browser is the Operating System) action then you're doing something wrong. (In your design or intended behaviour.)

提交回复
热议问题