Consider the following:
For ASP.NET web pages (not MVC), you can use Sys.UI.DomEvent object as wrapper of native event.
or, pass event as a parameter to inner function:
and in someFunction:
function someFunction(event){
event.stopPropagation(); // here Sys.UI.DomEvent.stopPropagation() method is used
// other onclick logic
}