简体   繁体   English

删除浏览器页面底部的目标网址链接

[英]Delete destination Url of link on the bottom of browser's page

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? 是否可以使用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 (例如只显示域名)谢谢

No, this is not possible... at least not yet. 不,这是不可能的......至少现在还没有。 The window.status property doesn't appear to work in most browsers, and even then in regards to firefox, it will only work if an option is enabled in the browser's settings. window.status属性似乎在大多数浏览器中都不起作用,即使在firefox方面,它也只能在浏览器的设置中启用选项时才有效。 You will have to do a sort of work-around. 你将不得不做一些解决方法。 From a bit of research, I found this work-around . 通过一些研究,我发现了这种解决方法

Something like the below will also work(eg, another workaround): 像下面这样的东西也可以工作(例如,另一种解决方法):

<a href="#" onclick="location.href ='http://www.google.com';">my link</a>

You can do this, or a variation of this: 您可以执行此操作,或者对此进行更改:

Having a link like this one: 有这样一个链接:

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

Then with jquery you can set where it will go on click: 然后使用jquery,您可以设置单击时的位置:

$(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. 这样滚动链接时,状态栏中不会显示任何位置。

EDIT: 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. 编辑:对于地址栏内容,要隐藏脚本的实际名称,您可以查看.htaccess重写规则,在网上搜索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从页面的 url 中删除页面的锚点链接 - to delete a page's anchor's link from page's url 单击链接以显示页面加载器,然后使页面加载器在定义的时间(显示目标的网址)后消失 - Click on link to show page loader, then make page loader disappear after a defined time, the show destination's url 有没有一种方法可以根据浏览器URL更改所有页面链接URL? - Is there a way to change all the page link url according to browser url? 找不到页面链接的URL。 - Unable to find a page link's url. 如何在 Javascript onbeforeunload 事件中获取网页上链接的目标 url? - How can I get the destination url of a link on the web page in the Javascript onbeforeunload event? 查找并列出所有URL-作为指向页面底部的可点击链接 - Find and list all URL-s as clickable links to the bottom of the page 如何在网络浏览器的状态栏上更改链接URL - how to change link url on the web browser's status bar 在HTML中,有一种方法可以使链接目标知道我来自哪个页面? - in Html there's a way to make the link destination know the page which i come from? 将点击链接的目标网址传递给javascript / jQuery - Pass the destination URL of clicked link to javascript/jQuery 如何强制Web浏览器单击页面上的链接? - How do I force a web browser to click a link that's on the page?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM