Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のウェブサイトには 4 つの iframe が含まれています。iframeごとに個別に戻るボタンを作成しようとしていますが、iframe用に個別のボタンを作成することは可能です。私を助けてください.....
はい、可能です。
myFrame1.history.back (); // or myFrame1.history.go (-1);
次のように使用します。
<iframe name="frame1"></iframe>
この IFrame の場合、JavaScript は次のとおりです。
<a href="#" onclick="frame1.history.back ();">Back IFrame 1</a>