window.location=pp+"?username="+getCookie("username")+"&userid="+getCookie("userid");
document.write("<form action="+pp+" method=post name=formx1 style='display:none'>");
document.write("<input type=hidden name=username value='"+getCookie("username")+"' />");
document.write("<input type=hidden name=userid value='"+getCookie("userid")+"' />");
document.write("</form>");
document.formx1.submit();原文:http://www.cnblogs.com/bhlsheji/p/5090956.html