: 링크를 특정된 공간에 띄움
<table width=100% height=100%>
<tr>
<td align="center">
<table width="500" height="650" border="1" bordercolor="black" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" width="500" height="600">
<IFRAME NAME="result" SRC="" WIDTH="500" HEIGHT="600" scrolling="no" frameborder="0"></IFRAME>
</td>
</tr>
<tr>
<td width="125" height="50" align="center">
<A HREF="http://www.naver.com" target="result">naver</A>
</td>
<td width="125" height="50" align="center">
<A HREF="http://www.daum.net" target="result">daum</A>
</td>
<td width="125" height="50" align="center">
<A HREF="http://www.cyworld.com" target="result">cyworld</A>
</td>
<td width="125" height="50" align="center">
<A HREF="http://www.nate.com" target="result">nate</A>
</td>
</tr>
</table>
<a> 태그의 target을 <iframe>의 name과 일치시켜 링크가 <iframe>의 공간에 나타나게함.
<table width=100% height=100%>
<tr>
<td align="center">
<table width="500" height="650" border="1" bordercolor="black" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" width="500" height="600">
<IFRAME NAME="result" SRC="" WIDTH="500" HEIGHT="600" scrolling="no" frameborder="0"></IFRAME>
</td>
</tr>
<tr>
<td width="125" height="50" align="center">
<A HREF="http://www.naver.com" target="result">naver</A>
</td>
<td width="125" height="50" align="center">
<A HREF="http://www.daum.net" target="result">daum</A>
</td>
<td width="125" height="50" align="center">
<A HREF="http://www.cyworld.com" target="result">cyworld</A>
</td>
<td width="125" height="50" align="center">
<A HREF="http://www.nate.com" target="result">nate</A>
</td>
</tr>
</table>
<a> 태그의 target을 <iframe>의 name과 일치시켜 링크가 <iframe>의 공간에 나타나게함.
'º Learning 。 > ♂ Javascript ♀' 카테고리의 다른 글
리턴값이 있는 함수 (0) | 2009.05.25 |
---|---|
onmouseover onmouseon (0) | 2009.05.25 |
Switch문 학점분류 (0) | 2009.05.25 |
Switch문 예제 (0) | 2009.05.25 |
confirm() 함수 (0) | 2009.05.25 |