<html>
<body>
<form name="searchForm" action=http://url
method="POST" target="result">
<input type="hidden" name="title" />
</form>
<script>
function search(q) {
document.searchForm.title.value = q;
document.searchForm.submit();
}
</script>
<ul>
<li><a href="javascript:search('이효리 바지');">query1</a></li>
</ul>
<iframe name="result" src=""></iframe>
</body>
</html>
<body>
<form name="searchForm" action=http://url
method="POST" target="result">
<input type="hidden" name="title" />
</form>
<script>
function search(q) {
document.searchForm.title.value = q;
document.searchForm.submit();
}
</script>
<ul>
<li><a href="javascript:search('이효리 바지');">query1</a></li>
</ul>
<iframe name="result" src=""></iframe>
</body>
</html>
'HTML' 카테고리의 다른 글
file download (0) | 2013.08.28 |
---|---|
post 방식 (0) | 2008.04.18 |
쿼리를 두개의 페이지에 보내기 (0) | 2007.06.07 |
색상 테이블( color table) (0) | 2007.04.19 |
checkbox(체크박스) (0) | 2007.04.11 |