View Full Version : iframe "text on the fly"


bottomshot
07-01-2003, 03:25 AM
I know how to write text on the fly(or a seperate source code) into a separate window. Is it possible that I could write it into an iframe? if so, what is the syntax?

pb&j
07-01-2003, 03:59 AM
it would be the same as your "separate window" example.

the iframe is given a NAME value.

the script you have should have a place to enter that in for a target or whatever.

pb&j
07-01-2003, 08:09 PM
I know that, but I am not sure whate the syntax is. With opening a seperate window, you have two defining factors. The variable and the name. EX:
var wind=window.open("",wind)
then to write text you would do something like
document.wind.write("<html>your source code</html>")
Could you give me the syntax of what you are talking about?
Is it like :
<iframe src="" name=wind>
<script>
document.wind.write("whatever")
looks good so far. im not the best at javascript myself.

bottomshot
07-01-2003, 08:14 PM
Duh! The only reason I would post my script so far was if it didn't work... Thanks though. lol.