Ciao, dovresti usare preventDefault() per prevenire il comportamento di default:
codice:
c.addEventListener("click", function(e){
   alert('ciao');
   e.preventDefault();
});
Qui una discussione su stackoverflow con qualche risposta sull'argomento:
https://stackoverflow.com/questions/...deventlistener

Riporto parte della risposta data:
That's simply the way it works. Events added inline (in HTML attributes) or assigned directly to the onclick property can be canceled by returning false. For events added using .addEventListener() you can use e.returnValue = false to achieve the same effect, but .preventDefault() is the standard way to prevent the default behavior.