Knock-knock joke, basically
I believe the answer is:
pun
(Other definitions for pun that I've seen before include "Double entendre" , "Humorous wordplay" , "A play on words, not really wit" , "Humorous play on words" , "A play on words - not the height of wit" .)