Tolwin: submit() mit variablem Target

Beitrag lesen

Ah super, jetzt habs auch ich verstanden =)
Allerdings brachte es nicht den erwarteten Erfolg.
Mit derartigem Konstrukt klappt es

top.body.document.location.href=document.forms[0].action;
top.document.location.href=document.forms[0].action;
top.body.content.document.location.href=document.forms[0].action;

wäre aber immer ein separater Aufruf.
Daher versuchte ich es so:
function auswahlSeite(y,x) {
var y;
var x;
if(x == "top") {
 top.body.document.location.href = y;
}
}
function submit () {
 document.forms[0].submit();
}

leider funktioniert das so nicht ... sorry für die Fragerei,
konnte aber per Google nix plausibles finden.

Danke!