@@blumentopf
Was mache ich hier falsch?
<a id="link" href="javascript:Link();">href</a>
Falsch: Du benutzt <a href="…">
für zur Ausführung einer JavaScript-Funktion. <a href="…">
ist für Links zu anderen Seiten. Für Aktionen auf einer Seite dient <button type="button">
.
Falls deine JavaScript-Funktion der Aufruf einer anderen Seite sein sollte: Warum per JavaScript?
LLAP 🖖
--
“You might believe there are benefits for the developer, but first of all, you should put those behind the interest of the user.” —Stefan Tilkov
Selfcode:
“You might believe there are benefits for the developer, but first of all, you should put those behind the interest of the user.” —Stefan Tilkov
Selfcode:
sh:) fo:} ch:? rl:) br:> n4:& va:| de:> zu:} fl:{ ss:| ls:# js:|