I bought these to hang on our porches to catch mosquitos and gnats, and they work great.  I hung them from a suction-cup hook attached to a window, and the light from inside the house seems to attract them to it.  I have already bought more.