删除链接的目标网址浏览器页面的底部 [英] Delete destination Url of link on the bottom of browser's page

查看:312
本文介绍了删除链接的目标网址浏览器页面的底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在每一个浏览器,当我留在光标一个可点击的链接,在页面的底部显​​示该链接,在这里我将点击被重定向的目的地。
是否有可能使用jQuery隐藏呢?
还可以隐藏地址栏或将其设置为空,为了隐瞒实际的页面? (例如只显示域名)
谢谢

In every browsers, when I stay with the cursor on a clickable link, in the bottom of the page is showed the destination of this link, where I'll be redirected on click. Is it possible to hide this with jQuery? Is also possible to hide the address bar or set it blank, in order to hide the actual page? ( for example showing only the domain name) thanks

推荐答案

您可以做到这一点,还是这个变化:

You can do this, or a variation of this:

有了这样一个链接:

<a href="#" id="mylink">click here</a>

然后使用jQuery,您可以设置它会去点击:

Then with jquery you can set where it will go on click:

$(document).ready(function() {
            var where_to = "http://www.google.com";
            $('#mylink').on('click', function(event) {
                event.preventDefault();
                 document.location.href = where_to;
            })
        });

和上翻转的链接这种方式,没有位置将显示在状态栏。

And this way on roll over the link, no location will be displayed in the status bar.

编辑:而对于地址栏内容,隐藏脚本的实际名称,你可以看看的.htaccess重写规则,请在网络上搜索

And for the address bar content, to hide the actual name of the script, you can have a look at .htaccess rewrite rules, do a search on the web.

这篇关于删除链接的目标网址浏览器页面的底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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