Dieser Artikel beschreibt die Methode von Javascipt, um Werte zwischen zwei IFRames zu übergeben. Teilen Sie es für Ihre Referenz wie folgt weiter:
index.htm
<body> <table> <tr> <td><iframe src="iframe1.htm" name="aa"></iframe></td> </tr> <tr> <td><iframe src="iframe2.htm" name="bb"></iframe></td> </tr> </table></body>
Iframe1.htm
<html> <title> 1 </title> <cecT> <script type = "text/javaScript"> <!- Funktion aa () {parent.frames ["bb"]. parent.frames ["bb"]. document.all ["textbox4"]. value = document.getElementById ("textBox2"). Wert; alert (parent.frames ["bb"]. document.all ["textBox3"]. Wert); alert (parent.frames ["bb"]. document.all ["textBox4"]. Wert); } // -> </script> </head> <body> <form id = "> <input id </form> </body> </html>Iframe2.htm
<html> <titels> 2 </title> <pead> </head> <body> <form id = "b"> <input id
For more information about JavaScript related content, please check out the topics of this site: "Summary of JavaScript value transmission operation skills", "Summary of JavaScript encoding operation skills", "Summary of json operation skills in JavaScript", "Summary of JavaScript switching effects and techniques", "Summary of JavaScript search algorithm skills", "Summary of JavaScript animation effects and techniques", "Zusammenfassung von JavaScript -Fehlern und Debugging -Techniken", Zusammenfassung der JavaScript -Datenstrukturen und Algorithmusfähigkeiten "," Zusammenfassung der JavaScript -Traversal -Algorithmen und -Techniken "und" Zusammenfassung der Nutzung von JavaScript -Mathematical Operations ""
Ich hoffe, dieser Artikel wird für JavaScript -Programme aller hilfreich sein.