타겟지정.. 정보
타겟지정..본문
안녕하세요..
아무리 해봐도.. 제 보잘것 없는 실력으론 무리군요 ㅡ.ㅡ;;;
검색 폼인데요..
현재.. 이걸 아이프레임으로 불러와 있는 상태입니다..
검색시.. 타겟지정해서 부모창이나.. 새창이나.. 그렇게 열고 싶은데..
현재 상황으론.. 스크립트로 해결을 봐야하는건지.. 킁..
도무지. 어디어떻게 줘야할지 모르겠습니다 ㅠ_ㅠ 도와주세용;
<table width=400 cellpadding=0 cellspacing=0 border=0 bgcolor=1B7FAE style="border-right-width:1; border-left-width:1; border-right-color:rgb(168,75,0); border-left-color:rgb(168,75,0); border-right-style:double; border-left-style:double;">
<tr><td height=1 bgcolor=A84B00 colspan=3></td></tr>
<tr>
<td width=124 align=center><b>인물정보검색</b></td>
<td align=center>
<table width="252" height="40" cellpadding="0" cellspacing="0" border="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<input type="hidden" name="bo_table" value="inmoolinfo">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="206" height="2"></td>
<td width="44"></td>
<td width="2"></td>
</tr>
<tr>
<tr><td height=1 bgcolor=A84B00 colspan=3></td></tr>
<tr>
<td width=124 align=center><b>인물정보검색</b></td>
<td align=center>
<table width="252" height="40" cellpadding="0" cellspacing="0" border="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<input type="hidden" name="bo_table" value="inmoolinfo">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="206" height="2"></td>
<td width="44"></td>
<td width="2"></td>
</tr>
<tr>
<td width="206" align="center">
<input type="text" name="stx" align="middle" style="width:200px; height:19px;" class=scinput tabindex=1></td>
<td width="44">
<input type="image" src="http://gynet.co.kr/gynet/skin/search/basic/img/search_btn.gif" width="44" height="20" border="0" align="absmiddle" onFocus="this.blur()" target=board></td>
</tr>
</form>
</table>
<input type="text" name="stx" align="middle" style="width:200px; height:19px;" class=scinput tabindex=1></td>
<td width="44">
<input type="image" src="http://gynet.co.kr/gynet/skin/search/basic/img/search_btn.gif" width="44" height="20" border="0" align="absmiddle" onFocus="this.blur()" target=board></td>
</tr>
</form>
</table>
<script language="JavaScript">
document.onload = document.fsearchbox.stx.focus();
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
document.onload = document.fsearchbox.stx.focus();
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
댓글 전체
타겟을 스크립트에 넣으세요.
f.submit() 위에
f.target = "프레임명";
f.submit() 위에
f.target = "프레임명";
감사합니다^^