Hi,
document.getElementById("produkt").insertBefore(a, document.getElementById("bestellung"));
>
> ~~~html
> <body id="produkt">
> <p>
> <a href="/bestellen.php" id="bestellung">Zur Bestellung</a>
> </p>
> </body>
>
Worin liegt der Fehler?
in <body id="produkt"> existiert kein <a id="bestellung">.
Cheatah
--
X-Self-Code: sh:( fo:} ch:~ rl:° br:> n4:& ie:% mo:) va:) de:] zu:) fl:{ ss:) ls:~ js:|
X-Self-Code-Url: http://emmanuel.dammerer.at/selfcode.html
X-Will-Answer-Email: No
X-Please-Search-Archive-First: Absolutely Yes
X-Self-Code: sh:( fo:} ch:~ rl:° br:> n4:& ie:% mo:) va:) de:] zu:) fl:{ ss:) ls:~ js:|
X-Self-Code-Url: http://emmanuel.dammerer.at/selfcode.html
X-Will-Answer-Email: No
X-Please-Search-Archive-First: Absolutely Yes