[問題] target="main"

看板Web_Design作者 (兔子)時間15年前 (2010/06/27 20:52), 編輯推噓0(002)
留言2則, 1人參與, 最新討論串1/1
我在index.php做了一個表格 <form id="ref" action="fight.php" method="post" target="fight"> 然後fight.php中寫的表格 <form id="ref" action="newindex.php" method="post" target="main"> 想說因為target=main 所以會submit回原本index的那一頁 但是沒想到它開新視窗了 如果用 <form id="ref" action="newindex.php" method="post" target="_parent"> 的話會開在自己的視窗裡面 兩個都不是我要的效果 請問有什麼方式可以做出我要的效果呢? 謝謝 -- ◤ __ \__◢◤◢◤ ψhirabbitt ◤ ◢███◣ ◢███◣ 和妳的約定 █████ █████ 不變心的約定 ██ ███ 是變心的約定 ██╱╲ ◥█████◣● 是我和自己的約定╱╱ ◥████ ˇ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.13.127.91

06/27 21:09, , 1F
我是用form直接開視窗 沒有frame
06/27 21:09, 1F

06/27 21:19, , 2F
喔 我用window.name="main"解決了
06/27 21:19, 2F
文章代碼(AID): #1C9qb_Q9 (Web_Design)