HTML javascript POST
<a href='javascript:void(0);' onclick = postUrl('URL.aspx','data01','data02','data03');>
導頁
</a>
<script type="text/javascript" language="javascript">
function postUrl(url, data01, data02, data03) {
document.body.innerHTML = '<form id="dynForm" action=' + url
+ ' method="post">'
+ '<input type="hidden" name="data01" value="' + data01 + '">'
+ '<input type="hidden" name="data02" value="' + data02 + '">'
+ '<input type="hidden" name="data03" value="' + data03 + '">'
+ '</form>';
document.getElementById("dynForm").submit();
}
</script>
我只是一棵樹