Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: How do I... use JScript to write directly into the document contained in my IFRAME?


Message #1 by "brian lowe" <brian.lowe@i...> on Thu, 16 May 2002 10:48:07
Further to my earlier problem, I'm trying to get round it by writing a 
form into the IFRAME and then submitting the form, all via script, to fool 
the browser into using POST to get the document for the IFRAME.

My IFRAME has an id - myIFrame

If I use 
var mf = document.getElementById("myIFrame").document;
mf becomes an object, which I had hoped would be the document contained 
within the IFrame, but if I then do
mf.write('hello world!');
it's the main document that gets written to - not the child doucment in 
the IFrame :-/

How do I write to the document in my IFrame?

Brian Lowe
---------@

  Return to Index