0

I want to hide the actual url that is displayed in status bar of browser when link or actionlink is mouseovered or clicked. I tried using window.status but it is not working. Also the examples that i saw were for fixed urls to some sites. But the links that i want hide in status bar are like /Home/DownloadFileUsingFileName?FileName=Filename in which Filenamewill be different for different files based on their name.

Edit: The duplicate question deals with <a href="url">Hyperlink</a> but i am working with actionlinks. And i want a solution to hide url in status bar when an action link is clicked.

mailmehere
  • 173
  • 1
  • 3
  • 14
  • Based off what the dupe says `XXX` and `$("a").on("click", function(){ this.href = $(this).data("href"); });` – epascarello Jul 23 '14 at 05:12
  • I got the solution for and thanks for that but i also want a solution for actionlinks. – mailmehere Jul 23 '14 at 05:14
  • And what does an action link render as since that is not an html element. – epascarello Jul 23 '14 at 05:16
  • `$(function(){ $("a").each(function(){ $(this).data("href", this.href); this.href="#"; }).on("click", function(){ this.href = $(this).data("href"); }); });` – epascarello Jul 23 '14 at 05:18
  • Any web page that tries to hide the status bar and its contents is immediately suspect and wouldn't be visited again by me. Why do you need to hide this? What are you hiding? Do you really think you can hide something? Surprised this doesn't have the downvotes like all all the duplicates have. – lornix Jul 23 '14 at 05:23

0 Answers0