作者hirabbitt (兔子)
看板Web_Design
標題[問題] target="main"
時間Sun Jun 27 20:52:13 2010
我在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
→ hirabbitt:我是用form直接開視窗 沒有frame 06/27 21:09
→ hirabbitt:喔 我用window.name="main"解決了 06/27 21:19