Nešto kao:
Kôd:
window.onload = function() {
var iframe = document.createElement('iframe');
iframe.src = 'form.html';
iframe.style.display = 'none';
iframe.onload = function() {
var doc = this.contentDocument;
var param1 = doc.getElementById("field1");
param1.value = "Well, I'm new one";
alert(doc.getElementById("field1").value);
var theForm = doc.forms['someCoolForm'];
this.onload = null;
theForm.submit();
}
document.body.appendChild(iframe);
}
__________________
Don't look at me; I'm lost too.
“If you can't dazzle them with brilliance, baffle them with bul*s**t.”
Poslednja izmena od Br@nkoR : 25. 04. 2012. u 13:29.
|