开发者

vb.net popup window

开发者 https://www.devze.com 2022-12-17 21:35 出处:网络
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开发者_Sta

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号