locked
Mouseover Button in ASP.net vb shows URL RRS feed

  • Question

  • User-1977820137 posted

    Hi,

    I am using asp.net with vb. Created buttons in my ASPX but when I go over with the mouse IE shows the URL path in the bottom. I do not like that behavior.

    Is there a way that, when I go over a button with the mouse, the URL info is not displayed..

    Thanks

    Wednesday, November 9, 2016 1:53 PM

All replies

  • User3690988 posted

    If you are referring to the status bar on the bottom of the browser, chances are you will not be able to change it because of security concerns.

    Wednesday, November 9, 2016 4:34 PM
  • User-1977820137 posted

    I do not want to change the IRL I want that it will not displayed..

    Wednesday, November 9, 2016 5:51 PM
  • User-2057865890 posted

    Hi Jbon,

    You could use buttons of type button instead of submit (the default) and IE won't display any tool tip. There are few workarounds.

    <button id="btnCancel" type="button">Cancel</button>
    
    <input id="btnCancel" type="button" value="Cancel"></input>
    
    <a id="btnCancel" class="btn" href="#">Cancel</a>
    
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnCancel").click(function (e) {
                myForm.submit(); 
            });
        });
    </script>

    reference: http://stackoverflow.com/a/21303276 

    Best Regards,

    Chris

    Friday, November 11, 2016 2:24 AM
  • User1847352307 posted

    if you are using anchor tag inside button, use below code to hide URL link on mouse over

    $('a').each(function(){  

    $(this).attr('onclick','window.location.href="'+$(this).attr('href')+'"');

    $(this).attr('href','#');

    });

    Thursday, November 24, 2016 8:26 AM