jBox Widget - Advanced sample: Confirmations

Click this text to get a prompt...

Your reply: ---waiting---

Study the code to see how the user's response (Confirm or Cancel) triggers a custom JS-Event ("My...") for which we defined "listeners" in APL (the My...-Event in JS fires the "Callback_My..."-fn in APL). The example, however, is a bit simplistic because we assume that the confirmation is triggered as the users clicks some text. Often you may want to execute some JS and THEN have the user confirm something. Such advanced usage is illustrated in other examples:
Controls used on this page: JavaScript: jBox Base HTML: divh2pspanstyle