When someone intentionally does something to another person or people for comedic reasons, like putting thumbtacks on one's chair or drawing on one's face as they sleep.
For verbal or other non-physical actions use trolling instead.