- function openWindowWithPost(url,keys,values)
- {
- var newWindow = window.open();
- if (!newWindow)
- return false;
- var html = "";
- html += "<html><head></head><body><form id='formid' method='post' action='" + url + "'>";
- if (keys && values)
- {
- html += "<input type='hidden' name='" + keys + "' value='" + values + "'/>";
- }
- html += "</form><script type='text/javascript'>document.getElementById('formid').submit();";
- html += "</script></body></html>";
- newWindow.document.write(html);
- return newWindow;
- }
keys为参数;values为参数值