<div>
<form method="post" action="">
<input type="hidden" id="url" name="url" value="http:\\mysite"/>
<input type="hidden" id="parameter" name="parameter" value="polNo=23|seqNo=3456|status=A"/>
</form>
</div>
<script type="text/javascript" language="javascript">
$(document).ready(
function () {
postToUrl($("#url").val(), $("#parameter").val(), "post");
}
);
function postToUrl(path, params, method) {
var form = document.createElement("form");
form.setAttribute("method", method);
form.setAttribute("action", path);
var hiddenField = document.createElement("input");
hiddenField.setAttribute("type", "hidden");
hiddenField.setAttribute("name", "parameter");
hiddenField.setAttribute("id", "parameter");
hiddenField.setAttribute("value", params);
form.appendChild(hiddenField);
document.body.appendChild(form);
form.submit();
}
</script>