0
votes

i have an aspx page which has a button on it. When i click on the button, a popup should open up and the page should automatically redirect to next page. So Page1 has button1. When button1 is clicked popup1 is opened and page1 behind goes to page2. how do i do that?

2

2 Answers

0
votes

OK if you want to display a popup and not a message box, you could use something like:

function ShowAndMove()
{
    window.open('popup.htm');
    form.submit();
}
0
votes

If you are looking for a popup in a browser, you want to use Javascript.

button1.onclick() = window.location="page2.html"; window.alert("Press OK to continue to Page 2.");

Use window.alert if you just want a plain dialogue box.