如何禁用URL工具提示(状态栏)? [英] How to disable URL tooltip (status bar)?

查看:115
本文介绍了如何禁用URL工具提示(状态栏)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我点击链接(或使用鼠标悬停)时,网址会显示在屏幕底部。这是Firefox的默认行为。

When I click on a link (or hover with a mouse), the URL shows up at the bottom of the screen. That's the default behaviour in Firefox.

如何防止这种情况?

触觉界面。

谢谢!

推荐答案

可以使用jquery b $ b先在您的页面中插入jquery库然后

you can achieve this using jquery, first inlcude the jquery library in your page then

在页面中写入脚本

 $(function(){
       $('[data-url]') //select all elements having data-url
        .click(function(e){ e.preventDefault();
         window.location.href= $(this).attr('data-url')})
    })

和在html

<span data-url="#/inbox" >Go to inbox</span>
<a data-url="mydraft.html">Drafts</a>

这篇关于如何禁用URL工具提示(状态栏)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆