Good afternoon to evening. Using prototype.js I encountered a problem: I’m <a class='someclass'> up all <a class='someclass'> elements
var x = $$('.someclass'); for (var i=0; i<x.length; i++) { Event.observe(x[i], 'click', this.popup.bindAsEventListener(this)); } But, by clicking it, it follows the link specified in the href property. But he should not. You cannot use other properties for the link located in the href property. Solved the problem by onCLick="return false;" property onCLick="return false;" . I want a more concise solution. I understand you need to use Event.stop(); ? But how? Thank you in advance.