I say answer the question. What the user does with the knowledge of how to spam is simply not your concern or mine.
Maybe they are experimenting with user interface designs, and will shortly conclude it is a bad idea. Maybe they have a private, local-only web console for their own use that fires on mouse-over. There's no way for us to know or control how this knowledge will be used.
Imagine the same philosophy being applied on the Information Security exchange. At least some of these questions would have to be closed, and many more I think. The cryptography world has learned, perhaps counter-intuitively, that openly and publicly discussing "dangerous" knowledge yields better results than keeping everything secret.
The idea of "not educating the immoral" is very old in the world and very tempting, but I believe it is usually not correct, unless a very direct cause and effect path leading to "bad things" can be drawn. Because ultimately, such a decision is based on the judgement of another person.
Of course, it's altogether different if somebody asks "how can I hack into Company X's network?" or other such. But such a question would not be appropriate on the site anyway, due to being overly specific.