下面是Javascript代码创建一个表单和发表它。您可以使用它像get2post('http://site.com?a=1&c=2');
下面是一个简单的书签发生器,或谷歌等:http://chris.zarate.org/bookmarkleter
function get2post(u, t) { // u = url, t = target
var p = u.split('?')[0];
var q = u.split('?')[1].split('&');
var d = document;
var f = d.createElement("form");
f.setAttribute('action', p);
f.setAttribute('method', 'POST');
f.setAttribute('target', t || '_parent');
f.style.display = 'none';
for (i = 0; i < q.length; i++) {
var e = d.createElement("input");
var param = q[i].split('=');
e.name = param[0];
if (param.length >= 2) e.value = decodeURIComponent(param[1]);
f.appendChild(e);
}
d.body.appendChild(f);
f.submit();
}