Senden Sie Formulare von übergeordnetem und iframe an das gleiche Ziel

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Senden Sie Formulare von übergeordnetem und iframe an das gleiche Ziel

by Anonymous » 19 Aug 2025, 22:19

übergeordnete Form < /p>

Code: Select all

< /code>
iFrame -Formular < /p>

< /code>
Dieser JS funktioniert einwandfrei mit einer Schaltfläche, die in übergeordneter < /p>
platziert istvar iframedoc = document.getElementById('myIframe').contentWindow.document;
var inputs = iframedoc.getElementsByTagName('input');
iframedoc.getElementsByTagName('form')[0].submit();
Ich versuche, JS mit document.getElementById ("Form1") zu ändern. Subjekt (); , um das übergeordnete Formular zu senden, aber ich lende mit Ergebnissen nur aus einem Formular und nicht aus einem Formular und nicht aus

Top