I haven't created custom handlers myself yet. A google search should yield plenty of help on it though.
I'm not sure what you mean by the second question. If you add a click handler to the body element, it's not going to "get" any HTML, it will just fire whatever javascript is in it. This script will just navigate to the specified page.
-Peter
peterlanoie.blog