About anchor tag: disable display of link in status bar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sasimca007
    New Member
    • Sep 2007
    • 129

    About anchor tag: disable display of link in status bar

    Hello friends,
    Actually when we write an anchor tag, what is the link given in href that will be displayed in status bar of browser. I want not to display that. Is it possible with javascript or css?

    Please help me my friends.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    it could be something with the browser's status bar, but such things are usually handled by the browser application (i.e. it is not a concern of html in the first place)

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      You can set window.status onmouseover. However, on most newer browsers, changing the status bar via scripts is disabled by default and the only way to alter the behaviour would be to change the user preferences manually. See, for example, window.status.

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        yes ... and it even shouldn't be done ... the 'good' browsers don't allow that by default because of simply avoiding url-spoofing ...

        kind regards

        Comment

        • kunal pawar
          Contributor
          • Oct 2007
          • 297

          #5
          You can use this one
          <a .... onmouseover= " Window.status=' '; ">....</a>

          Or we have other solution

          <a href='#' onclick="javasc ript: window.location ='Your URL';">...</a>

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            The second "solution" would not be recommended because it would depend on JavaScript for a basic functionality, not to mention that the "javascript :" is not required.

            The first I've already referred to, but as I stated, this won't work in many modern browsers without changing the default settings.

            Comment

            Working...