HTML

고요한하늘 2007. 6. 7. 10:52

 

//자바스크립트 작성

<head>

<script type=\"text/javascript\">

function checkSubmit(q)
{
    document.lfrm.q.value = q;
    document.rfrm.q.value = q;
    document.lfrm.submit();
    document.rfrm.submit();

}

</script>
</head>

 

//폼 작성

//폼1 - lfrm
<form name="lfrm" method="get" action="xxx.cgi" target="left">
<input type="hidden" name="w" value="tot">
<input type="hidden" name="q" value="">
</form>

//폼2 - rfrm
<form name="rfrm" method="get" action="yyy.cgi" target="right">
<input type="hidden" name="w" value="tot">
<input type="hidden" name="q" value="">
</form>


<table cellpadding='0' cellspacing='2' border=0 width=100% valign=center>
<tr  bgcolor="#FFFFC1" align=center>

 

//URL 보내기
<a href="javascript:checkSubmit('해남왕새우');"><font color="CC6600"><b>해남왕새우</b></font></a><br>

</tr>

</html>