I would like to show a custom message from a Javascript file. Like this:

But with a custom message. There's any "trigger" for this?
function something(){
JIRA.trigger(JIRA.Events.REFRESH_ISSUE_PAGE, [JIRA.Issue.getIssueId()]);
// show a custom message here.
}