[EMAIL PROTECTED] wrote:
> It seems that if I attempted to put HTML in, at least in the way I'm  
> trying:
>
>       win1.getContent().innerHTML= "Now is the time for every good man..."
>
> It's not working in the least. Having the url option in the window  
> clobbers it. I kind of expected that... but is there a way to use a  
> url combined with whatever html I desire? Thanks for your help :) .
>
>               Kyle

What you are trying to do is writing to an object in the current DOM. 
IFRAME and FRAME objects load a new browser. You have to use the DOM 
traversal methods to get the contents of the window. However, you may 
come across security issues, as what you are trying to do is writing to 
a browser frame that has another root url than yours.

There are lots of tutorials on the internet about this subject and every 
beginners book on Javascript tells you how to get the body-object of the 
frame window. When you have it, you can treat it the same way you would 
using the normal body object (provided you have been granted access)

However, why would you do such a thing? The frame and iframes are meant 
for loading other pages with other sources. If you want to write your 
own pages (i.e., write content some object, say, a div, or even the body 
of the current page), you can do the same. If you want to combine the 
two techniques, you good thing of swapping (i.e., use a div for 
innerHTML, and use the iframe for external sources, and show/hide the 
one you want on any given moment). However, it appears to me as a very 
bad design choice.

Good luck with coding,

-- Abel Braaksma

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to