trolling
When someone intentionally does something to provoke anger or distress in another person or people for comedic reasons, mainly through verbal or other non-physical means.
For pulling physical pranks of the thumbtack-on-chair variety, use prank instead.