[英]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.