$("a.someLinks").click(function(event){tellme(this);});
then
function tellme(o) {alert(o.href);}
This is a core JavaScript idea so the API docs might not be a good
place to help with this.
It's more of a cookbook kind of thing.
The main idea is to pass "this" to tellme(o)