Hi,
Die Angabe onclick=false löst das Problem nicht:
Natürlich tut sie das nicht – weil sie in der Form absoluter Humbug ist.
document.write( "<p class=\"cdrot mb00 cur_pointer\" onclick=\"document.getElementById('kommentar').style.display='block'; onclick=false;\"><img class=ic_gr src=\"img/icon_share.gif\" alt=share> diese Veranstaltung empfehlen <\/p>"
Der Inhalt deines onclick-Attributes lautet hier
document.getElementById('kommentar').style.display='block'; onclick=false;
– also weist du hier lediglich einer Variablen mit dem Namen onclick den Wert false zu.
„Aus“ dem Eventhandler selber müsste false zurück gegeben werden – onclick="foo(); return false;"
(Allerdings ist das echt „Event-Handling aus dem letzten Jahrtausend“ …)
MfG ChrisB
--
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/