...
{window.location = "MELT://showAlert:/Message to display"; return false;} defines what happens if the previous condition is met using the code. According to the code, a message will be displayed and a False value will be returned preventing the record from being deleted. To define which message to display, the code in onDelete example 1 is as follows:
...