Hi,
You can use messageBox here. See the bewlow code
var response = xfa.host.messageBox ("Do you want to view the help content", "Information", 2, 3);
if (response == 4)
{
xfa.host.gotoURL ("www.google.co.in"); // Opens up the help page.
}
Here the messageBox takes 4 parameters, 1st one is compulsory, rest are optional.
Param1 - 'Do you want to view the help content' - The text you want to display the user.
Param2 - 'Information' - The Title of the JavaScript window.
Param 3 - '2' - The icon of the message box.
If you put the following following it will come likewise.
0 - Cross Mark (X)
1 - Exclamation Mark
2 - Question Mark - (?)
3 - Information
Param 4 - '3' - The buttons you want to display.
0 - OK
1 - OK, Cancel
2 - Yes,No
3 - Yes, No, Cancel
Returns the type of the button that was pressed by the user: '1' (OK), '2' (Cancel), '3' (No), and '4' (Yes).
So, customize as per your need.
Thanks,
Bibhu.