I know it's not ideal and I was aware of that post when I wrote this. However
it's all horses for courses isn't it. It depends where you application is going
to be used and if crawlers will ever visit.
I want to add to the demo/article a form as well as a link, which does the same
thing. In the same way you can "return false" in the onclick of an <a> link you
can in the onclick of an <input type="submit"> button as well. So we can use
the same approach for a real form as well.