How to hide links on browser's statusbar when you mouseover on links on webpage?

后端 未结 4 796
半阙折子戏
半阙折子戏 2020-12-19 22:28

I am using Zend, PHP, AJAX, JQuery in my projects. Question is that how can I force to not display a link on browser\'s statusbar when I mouseover on a link on my webpage.

4条回答
  •  梦毁少年i
    2020-12-19 23:00

    On Stack Overflow, you don't see an address, because it isn't a link (i.e. it isn't an anchor). It is a span, image or other element, with an onclick event handler.

    This is the only way to guarantee no status-bar text in all browsers as the old-school JavaScript method of setting window.status = ""; has no effect in most browsers these days.

    So, for example...

    [Html]
    My Image
    
    [JavaScript (jQuery)]
    $("#clickme").click(function() { alert("You clicked me"); });
    

提交回复
热议问题