[問題] 一個form 兩個action 一個button
Dear all,
想請教個問題,現在一張網頁下面有一個form、一個button、兩個iframe
我要如何在按下按鈕後傳送值指向兩個不同的iframe
Google後的解法但是不行
function OnButton(){
window.document.form.action = "1.php";
window.document.form.target = "iframe";
window.document.form.submit();
window.document.form.action = "2.php";
window.document.form.target = "iframe1";
window.document.form.submit();
return true;
}
爬文看到的那篇有點不懂,請問有更詳細的解說或是其它的寫法解法嗎?
感激不盡
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.124.64.157
推
09/13 22:12, , 1F
09/13 22:12, 1F
推
09/13 22:30, , 2F
09/13 22:30, 2F
→
09/15 13:45, , 3F
09/15 13:45, 3F