I tried but I guess Message Box only works with win forms. What is the best alternative to use in web forms?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
confirmfor yes/no questions andalertfor ‘OK’ messages in JavaScript.The other alternative is to use JavaScript to pop up a new window that looks and acts like a message box. Modality in this case varied by browser. In Internet Explorer, the method
will display a modal dialog. The Mozilla approach is to still use
but add
modal=yesto theparamslist.