Hey arie.keren,
You can't change the JavaScript alert box header name. But instead you can use JQuery dialog .
Please refer below sample.
HTML
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/blitzer/jquery-ui.css"
rel="stylesheet" type="text/css" />
<script type="text/javascript">
function ShowPopup(message) {
$(function () {
$("#dialog").html(message);
$("#dialog").dialog({
title: "jQuery Dialog Popup",
modal: true
});
});
};
</script>
<div id="dialog" style="display: none">
</div>
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
string message = "Kolom Propinsi belum dipilih !";
ClientScript.RegisterStartupScript(this.GetType(), "Popup", "ShowPopup('" + message + "');", true);
}
VB.Net
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
Screenshot
