/**
*
* @param scriptContext
*/
function alertMesage(scriptContext){
var html = '<script> alert("The quantity should be greater than Zero");window.close() </script>';
scriptContext.response.write(html)
}
The alert message will show and on clicking ok will close the whole suitelet page