Remove URL of JavaScript alert box in Google Chrome using C# and VB.Net

Last Reply one year ago By pandeyism

Posted one year ago

If it is possible to remove the message "This Page at Says" from the pop up page in Google Chrome.

Dim message As String

message = "alert('Kolom Propinsi belum dipilih !')"
ScriptManager.RegisterClientScriptBlock(TryCast(sender, Control), Me.GetType(), "alert", message, True)


Posted one year ago

Hey arie.keren,

You can't change the JavaScript alert box header name. But instead you can use JQuery dialog .

Please refer below sample.


<script type="text/javascript" src=""></script>
<script src="" type="text/javascript"></script>
<link href=""
    rel="stylesheet" type="text/css" />
<script type="text/javascript">
    function ShowPopup(message) {
        $(function () {
                title: "jQuery Dialog Popup",
                modal: true
<div id="dialog" style="display: none">



protected void Page_Load(object sender, EventArgs e)
    string message = "Kolom Propinsi belum dipilih !";
    ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup('" + message + "');", true);


Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
    Dim message As String = "Kolom Propinsi belum dipilih !"
    ClientScript.RegisterStartupScript(Me.[GetType](), "Popup", "ShowPopup('" & message & "');", True)
End Sub