Supportnet / Forum / Skripte(PHP,ASP,Perl...)
HTMLOptionElement löschen ?
Frage
Hallo Experten,
Bekomme zwar nur selten Antwort, gebe aber nicht auf :-)
Folgendes Problem:
Ich erzeuge in einer HTML Seite OptionElemente mit CreateElement:
[code]
set objOption = ie.document.frames(1).document.createElement("OPTION")
objOption.text = objShWindow.LocationURL
objOption.value = objShWindow.LocationURL
ie.document.frames(1).document.forms(0).elements.Item("D6").add(objOption)
[/code]
Jetzt möchte ich aber die erzeugten Elemente wieder löschen.
Ich finde aber die Befehle nicht im Objectkatalog.
Wäre wirklich toll wenn mal einer helfen könnte.
Gruß struppi
Antwort 1 von struppi
Schuldigung..
Habe es selbst gefunden.
ie.document.frames(1).document.forms(0).elements.Item("D6").remove(index)
Gruß struppi
Habe es selbst gefunden.
ie.document.frames(1).document.forms(0).elements.Item("D6").remove(index)
Gruß struppi

