- Open the Edit Tab.
- Select the Link tool.
- Select an area you would like to cover with the link.
- Insert the following code:
var answer = app.alert("Do you say yes or no?", 2, 2);
/* Question icon, Yes/No button. */
/* 0 = error, 1 = OK, 2 = Cancel, 3 = No, 4 = Yes */
if (answer == 4)
app.alert("You said yes!");
app.alert("You said no!");
When you click on the link you have created (change to view mode first!), you will see the alert box popping up.