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.Remove URL of JavaScript alert box in Google Chrome using C# and VB.Net<p>Hey <a class="username" rel="arie.keren"> arie.keren</a>,</p> <p>You can't change the JavaScript alert box header name. But instead you can use JQuery dialog .</p> <p>Please refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <pre class="brush: html">&lt;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script src=&#34;http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js&#34; type=&#34;text/javascript&#34;&gt;&lt;/script&gt; &lt;link href=&#34;http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/blitzer/jquery-ui.css&#34; rel=&#34;stylesheet&#34; type=&#34;text/css&#34; /&gt; &lt;script type=&#34;text/javascript&#34;&gt; function ShowPopup(message) { $(function () { $(&#34;#dialog&#34;).html(message); $(&#34;#dialog&#34;).dialog({ title: &#34;jQuery Dialog Popup&#34;, modal: true }); }); }; &lt;/script&gt; &lt;div id=&#34;dialog&#34; style=&#34;display: none&#34;&gt; &lt;/div&gt;</pre> <p><span style="text-decoration: underline;"><strong>Code</strong></span></p> <p><strong>C#</strong></p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { string message = &#34;Kolom Propinsi belum dipilih !&#34;; ClientScript.RegisterStartupScript(this.GetType(), &#34;Popup&#34;, &#34;ShowPopup(&#39;&#34; + message + &#34;&#39;);&#34;, true); }</pre> <p><strong>VB.Net</strong></p> <pre class="brush: vb">Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load Dim message As String = &#34;Kolom Propinsi belum dipilih !&#34; ClientScript.RegisterStartupScript(Me.[GetType](), &#34;Popup&#34;, &#34;ShowPopup(&#39;&#34; &amp; message &amp; &#34;&#39;);&#34;, True) End Sub</pre> <p><span style="text-decoration: underline;"><strong>Screenshot</strong></span></p> <p><img src="https://imgur.com/ZG3TcKK.jpg" alt="" width="364" height="308" /></p>https://www.aspforums.net:443/Threads/367675/Remove-URL-of-JavaScript-alert-box-in-Google-Chrome-using-C-and-VBNet/https://www.aspforums.net:443/Threads/367675/Remove-URL-of-JavaScript-alert-box-in-Google-Chrome-using-C-and-VBNet/Mon, 26 Nov 2018 23:31:48 GMT