logic hooks popup alert

Hello,

Please help me solution to display popup alert by logic hooks

This logic hooks after save of Case, when Case set to Closed but Task in subpanel is not Completed, the logic hooks will popup alert and restrict save.

Thanks