Msgbox in web class

hi everyone. i want to use a msgbox with options like “yes” or “no” in a web class so the user can response, but i can’t. here is my code:
if msgbox("¿Are you sure?",4+48+256)=7 then

end if
i use this in a desktop app and is ok, but no in web app
i read this–> https://forum.xojo.com/2822-msgbox/0#p19199 but is not the solution i want because i need a real example of how to use it
i tried to use this but does not work–> http://forums.realsoftware.com/viewtopic.php?f=1&t=36665

could anyone give me a clear example of how I can use a dialog with “yes” and “no” options?
thanks a lot!

The Msgbox for WE isn’t exactly the same as for a Desktop app.
I always create my own dialogs for WE projects so they both look and behave like I want them to :slight_smile:
http://documentation.xojo.com/index.php/WebDialog

A WebDialog is exactly what you want to use. There is an example in User Guide Book 2: User Interface, Chapter 2: Web, Section 10: Dialog Boxes.

There are also two examples projects included with Xojo:

Examples/Web/Dialog Boxes/DialogsExample
Examples/Web/Dialog Boxes/DynamicDialogsExample