简体   繁体   中英

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? 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. 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:

$(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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM