Inline modal dialog helps us more in critical situation such as through an error message to user, can execute DML process while through warning pop up message. In this post you can learn how to open inline modal dialog from simple java script code.
Step 1 : Create a inline modal dialog region.
Also give static id for inline modal region ex: “sampledialog” as below snap
Step 2 : Create a button to call modal dialog.
Step 3 : Call Inline Modal Dialog from button URL
That’s it, you made it.. just click the button you can get to open the modal dialog.