vb.net popup window
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 i开发者_StackOverflows clicked popup1 is opened and page1 behind goes to page2. how do i do that?
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();
}
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.
精彩评论