How to show a pop up messagebox

Total Post:8


 3860  View(s)
Rate this:
How to show a pop Up message box in mvc
  1. Re: How to show a pop up messagebox

    hi ravi,

    To open a pop up message box, create a java-script function as shown below:

    <script type="text/javascript">
            function openPopup() {
                var answer = confirm("Are you sure");

    then call that function wherever you want. I call it on the click of hyperlink.

    <%: Html.ActionLink("Open Popup", "Index", "Home", new { id = "popup", onclick = "openPopup()" })%>

    you can modify your popup box with the help of java-script and css. Here I had simply given a demo.

      Modified On Mar-29-2018 04:45:46 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.