ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Hide Anchor link from browser status bar on Mouseover and redirect on Link Click in ASP.Net<p>Hi <a class="username" rel="Alauddin">Alauddin</a>,</p> <p>Refer below modified code.</p> <p><strong><span style="text-decoration: underline;">HTML</span></strong></p> <pre class="brush: html">&lt;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; var link = &#34;&#34;; window.onload = function () { var table = document.getElementsByTagName(&#34;table&#34;); var trs = table[0].getElementsByTagName(&#39;tr&#39;); for (var i = 0; i &lt; trs.length; i++) { var tds = trs[i].getElementsByTagName(&#39;td&#39;); var cardno = tds[1].innerText; if (cardno.length &gt; 5) { var firstFour = cardno.substr(0, 4); var lastFour = cardno.substr(cardno.length - 4, cardno.length); var middle = cardno.substr(4, cardno.length - 8).replace(/[0-9]/g, &#34;*&#34;); var newLink = document.createElement(&#34;a&#34;); newLink.setAttribute(&#34;Class&#34;, &#34;link1&#34;); newLink.setAttribute(&#34;href&#34;, &#34;https://www.Test.com/&#34; + cardno); text = document.createTextNode(firstFour + middle + lastFour); newLink.appendChild(text); tds[1].appendChild(newLink); } } } $(document).on(&#39;click&#39;, &#34;a[Class=&#39;link1&#39;]&#34;, function (e) { $(this).attr(&#39;href&#39;, link); }); $(document).on(&#39;mouseover&#39;, &#34;a[Class=&#39;link1&#39;]&#34;, function (e) { $(this).attr(&#39;style&#39;, &#39;text-decoration:none&#39;); link = $(this).attr(&#39;href&#39;); $(this).attr(&#34;href&#34;, &#34;javascript:;&#34;); }); $(document).on(&#39;mouseout&#39;, &#34;a[Class=&#39;link1&#39;]&#34;, function (e) { $(this).removeAttr(&#39;style&#39;); $(this).attr(&#39;href&#39;, link); }); &lt;/script&gt; &lt;div&gt; &lt;asp:Label ID=&#34;lblTable&#34; runat=&#34;server&#34;&gt;&lt;/asp:Label&gt; &lt;/div&gt;</pre> <p><strong><span style="text-decoration: underline;">C#</span></strong></p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(&#34;&lt;table id=&#39;01717458720_CardList&#39;&gt;&#34;); sb.Append(&#34;&lt;tr&gt;&#34;); sb.Append(&#34;&lt;td id=&#39;product_type&#39;&gt;CREDIT CARD&lt;/td&gt;&#34;); sb.Append(&#34;&lt;td id=&#39;card_no&#39; abbr=&#39;*&#39;&gt;1111234567123456&lt;/td&gt;&#34;); sb.Append(&#34;&lt;td id=&#39;card_status&#39;&gt;INACTIVE&lt;/td&gt;&#34;); sb.Append(&#34;&lt;td id=&#39;acct_no&#39;&gt;N/A&lt;/td&gt;&#34;); sb.Append(&#34;&lt;td id=&#39;name&#39;&gt;Mr. X&lt;/td&gt;&#34;); sb.Append(&#34;&lt;/tr&gt;&lt;tr&gt;&#34;); sb.Append(&#34;&lt;td id=&#39;product_type&#39;&gt;DEBIT CARD&lt;/td&gt;&#34;); sb.Append(&#34;&lt;td id=&#39;card_no&#39;&gt;0000000000000000&lt;/td&gt;&#34;); sb.Append(&#34;&lt;td id=&#39;card_status&#39;&gt;ACTIVE&lt;/td&gt;&#34;); sb.Append(&#34;&lt;td id=&#39;acct_no&#39;&gt;55555555555&lt;/td&gt;&#34;); sb.Append(&#34;&lt;td id=&#39;name&#39;&gt;Mrs. Y&lt;/td&gt;&#34;); sb.Append(&#34;&lt;/tr&gt;&lt;/table&gt;&#34;); lblTable.Text = sb.ToString(); } }</pre> <p><strong><span style="text-decoration: underline;">Screenshot</span></strong></p> <p><img src="https://imgur.com/04fwi2k.gif" alt="" width="472" height="142" /></p>https://www.aspforums.net:443/Threads/147613/Hide-Anchor-link-from-browser-status-bar-on-Mouseover-and-redirect-on-Link-Click-in-ASPNet/https://www.aspforums.net:443/Threads/147613/Hide-Anchor-link-from-browser-status-bar-on-Mouseover-and-redirect-on-Link-Click-in-ASPNet/Tue, 23 Oct 2018 07:57:59 GMT