var f=document.createElement('form'); f.style.display='none'; f.action=Feng.ctxPath+"/xxx/xxxxxx"; f.method='post'; // put the parameters that need to be passed here f.innerHTML="<input type='hidden' name='toStep' value='3'/><input type='hidden' name='account' value="+$('#loginname').val()+"></input>"; document.body.appendChild(f); // submit request f.submit();
Benefit: Prevents parameters from being displayed in the input field