Note that ONDIALOG defines how to handle a possible dialog. It does not make the macro wait for a dialog to appear.
ONDIALOG POS=n BUTTON=(YES|NO|CANCEL) [CONTENT=some_content]
- The position of the dialog. On some web pages a few dialogs occur directly after each other. In this case you can specify a decision for each dialog (POS=1 is first dialog, POS=2 is second dialog.) The POS statement applies only to dialogs that show directly after each other. This means that several ONDIALOG commands with different POS values must occur before another macro command is executed.
- Specifies which of the available buttons is pressed.