therealwesfoster Posted December 6, 2007 Share Posted December 6, 2007 Heres the code ifrm = document.createElement("IFRAME"); ifrm.setAttribute("src", "http://google.com/"); ifrm.setAttribute("frameborder", "0"); ifrm.setAttribute("name", "gf"); ifrm.style.width = 300+"px"; ifrm.style.height = 300+"px"; document.body.appendChild(ifrm); document.getElementsByTagName('font')[10].innerHTML = "TEST"; document.getElementById('txtSubject').value = "TEST2"; if (window.frames['gf'].location.href == "http://google.com/") { alert(window.frames['gf'].getElementsByName('test_input').innerHTML); } Im wanting to open an iframe, get a certain input from that page, then alert it in the iframe. But it's all being controlled by the parent window. I know ajax would be easier, but I've not learned it yet and haven't found a good place to learn it. But please help, thanks Quote Link to comment Share on other sites More sharing options...
therealwesfoster Posted December 6, 2007 Author Share Posted December 6, 2007 nevermind i got it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.