4 answers
Another way would be this: Another way would be this: Create a Text Field on the object named Message [ API Name : Message__c; Data Type : Text Area]. Now, you can drag in an Inline Visualforce Page on to the Page Layout. The Visualforce Page will have the JavaScript code that would see if there is any text in the field Message and if in case there is something then display a native browser alert . And if the Message field doesn’t have anything then don’t show anything. So in essence whenever the User takes that record and if there is some data in the field then pop-up would be displayed.
Now from the trigger, you can set in some value to the Message field. Also, the best part is that you may not even need a trigger for this as the setting the Message could be even achieved with the help of a Workflow Rule + Field Update.