CGI-BBS > JAVA/JavaScript > JavaScript > テーブルリンクでターゲットを指定したい。


カレッヂ
カレッヂ


質問者 genju  投稿日 2005/7/15(金) 15:11:11
<TABLE HEIGHT=30 BORDER=1 BGCOLOR="#FFFFFF" CELLSPACING=0>
<TR>
<TD WIDTH=150 ALIGN="center" onClick="window.location.href='index.html'" onmouseover="this.style.backgroundColor='#80FFFF';"
 onmouseout="this.style.backgroundColor=''" STYLE="cursor:hand;">テストページ1</TD>
<TD WIDTH=150 ALIGN="center" onClick="window.location.href='2.html'" onmouseover="this.style.backgroundColor='#80FFFF';"
 onmouseout="this.style.backgroundColor=''" STYLE="cursor:hand;">テストページ2</TD>
<TD WIDTH=150 ALIGN="center" onClick="window.location.href='3.html'" onmouseover="this.style.backgroundColor='#80FFFF';"
 onmouseout="this.style.backgroundColor=''" STYLE="cursor:hand;">テストページ3</TD>
</TR>
</TABLE> 

というコードを拾ってきたのですが、これでフレームターゲットを指定して飛ばしたいのですが
普通にtarget="flame1"と入れてみても画面全体が飛んでしまいます。
どうすればよいのか分からないのでどうか教えてください。

【習熟度】初めて

質問者 genju  [削除]  投稿日 2005/7/15(金) 16:30:08
onClick="window.flame1.location.href='index.html'
とやったら解決しました^^;

このページは終了したので返信(回答)は書きこめません
 


Web裏技