How To Hide url display in bottom left on mouseover?

后端 未结 8 1828
梦谈多话
梦谈多话 2021-02-06 07:02

I have a page for member\'s where log in is essential. On this page members get links for lectures conducted. Lectures links get added regularly. And Links to recording are fet

8条回答
  •  感动是毒
    2021-02-06 07:20

    Check the below code it will work in all browsers

    Hide url toaster in bottom left on mouseover

    $(function(){
               $("a").each(function (index, element){
                   var href = $(this).attr("href");
                   $(this).attr("hiddenhref", href);
                   $(this).removeAttr("href");
               });
               $("a").click(function(){
                   url = $(this).attr("hiddenhref");
                  // window.open(url);
                                             window.location.href = url;
               })
           });
    ul > li > a{
      font-size: 18px;
      line-height: 30px;
    }
    
    ul > li > a:hover {
      color: #425CD2;
      text-decoration: underline !important;
      cursor: pointer;
    }
    
    

提交回复
热议问题