• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

onclick link

magifix

Neues Mitglied
Code:
<input
 name="gesendet" value="Weiter" type="submit"> <input
 value="Artikel hinzuf&uuml;gen" type="button" onclick="location.href'index.php'"

Kann mir jemand bitte sagen was an diesem Codeschnipsel falsch ist
Ich möchte onclick auf die Seite index.php springen.
 
Code:
<input value="Artikel hinzuf&uuml;gen" type="button" onclick="location.href[COLOR=red]=[/COLOR]'index.php'"[COLOR=red]>[/COLOR]
 
Zurück
Oben