【问题标题】:I want to hide URL shown in taskbar on mousehover on hyperlink [duplicate]我想在鼠标悬停在超链接上时隐藏任务栏中显示的 URL [重复]
【发布时间】:2016-05-06 07:57:48
【问题描述】:

假设我有锚标签

链接

当我将鼠标悬停时,锚页面 url 将显示在浏览器的底部。 我想完全隐藏它。你能帮帮我吗?

【问题讨论】:

    标签: html


    【解决方案1】:

    这是一个应该可以工作的 jquery 代码:

    $(document).ready(function(){
        $('a').click(function(){
             $(this).attr({href: "#myanchor"});
        });
    });
    

    这将设置 href 属性并同时转到您的锚点

    【讨论】:

      猜你喜欢
      • 2012-04-08
      • 2013-02-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多