Javascript Window
window Javascript object is able to manage dialogs. It provides methods :
- alert(String text), the Javascript dialog alert which is able to display message text into a dialog.
- confirm(String text), the Javascript dialog confirm which is able to display message text into a dialog with confirmation.
Script :
window.alert('My message');
display SWT dialog :
Script :
if (window.confirm('Are you sure to do this action?')) {
// Do something with scripts
}
display SWT dialog :