Javascript alert center of screen

Last Reply one day ago By dharmendr

Posted 5 days ago

Hi,

I want to show the alert message in the middle of the screen. How is this possible.

 

<script type="text/javascript">
    var message = '@mesaj';


    if (message != "")
    {      

        if (confirm(message))
        {
           
        }
        else {
     
            alert(message);
        }
    }

</script>

 

You are viewing reply posted by: dharmendr 5 days ago.
Posted 5 days ago

Call the function in page load instead of button click.