Cancel postback on TreeNode click

I successfully create a tree in asp.net form. And i attach a handler for onlick action.

dhtmlxtree.attachEvent("onClick", function(id){
                onTreeNodeSelect(id);
                return false;
            });

However, the return false does not seem to have any effect at all, and the postback is occurred and the whole page is refreshed. Is there any way that i cancel the postback treenode click?

Thanks

Click in any tree node does not cause page refreshing. Please check your onTreeNodeSelect function.

However, the return false does not seem to have any effect at all

This is right. In onClick handler “return false” doesn’t cancel any action.