(X)HTML, JavaScript, DHTML, XML, CSS Client scripting tehnologije, Dynamic HTML, Cascading Stylesheets, XML i standardi |
|
Alati teme | Način prikaza |
25. 04. 2012. | #21 |
banned
Professional
Datum učlanjenja: 04.06.2005
Poruke: 371
Hvala: 0
738 "Hvala" u 83 poruka
|
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. |
"Hvala" Br@nkoR za poruku: |
|
|