Getting an onclick when clicking nothing

How can I send an event when I click into space as in nothing at all… Or should I make a background image attach code to it?