Hallo,
ich klone einige Formularfelder mit folgender Function
Code:
function clone_this(objButton)
{
if(objButton.parentNode)
{
tmpNode=objButton.parentNode.cloneNode(true);
objButton.form.appendChild(tmpNode);
for(j=0;j<objButton.form.lastChild.childNodes.length;++j)
{
if(objButton.form.lastChild.childNodes[j].type=='text')
{
objButton.form.lastChild.childNodes[j].value='';
break;
}
}
objButton.value="das obere entfernen";
objButton.onclick=new Function('f1','this.form.removeChild(this.parentNode)');
}
}
Ich habe zwischen dem abschicken des Formulars noch eine Kontrollseite eingebaut. wenn ich da auf den Zurück-Button klicke sind die Geklonten Formuarfelder weg. Im Firefox jedoch gehts wunderbar.
Zurück gehe ich mit
Code:
<button class="button" onClick="javascript:history.back()">Zurück</button>
Habt ihr ne Idee was ich faslch mache? weiß ja das IE und Firefox unterschiedlich sind...
Lg