---
title: "How to show a pop up messagebox"  
description: "How to show a pop up messagebox"  
author: "ravi kumar"  
published: 2011-11-02  
updated: 2011-11-03  
canonical: https://www.mindstick.com/forum/346/how-to-show-a-pop-up-messagebox  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# How to show a pop up messagebox

How to show a [pop Up](https://answers.mindstick.com/qa/50233/what-to-do-with-the-issues-that-may-pop-up-at-the-time-of-usb-device-installation) [message](https://www.mindstick.com/forum/12802/show-confirmation-message-yes-or-no-in-asp-dot-net) box in [mvc](https://www.mindstick.com/forum/155803/define-cache-profile-in-mvc)

## Replies

### Reply by Chris Anderson

hi ravi,\
\
To open a [pop](https://www.mindstick.com/blog/11768/magento-2-pop-ups-manager-a-great-solution-to-nail-every-sale-season) up message box, create a java-script function as shown below:\
\

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

\
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.\
\
\


---

Original Source: https://www.mindstick.com/forum/346/how-to-show-a-pop-up-messagebox

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
