Click to See Complete Forum and Search --> : not runing automatically load id from another frame


andrew1234
09-03-2003, 04:01 AM
Hi

on my page i have two frames
labeled "top" and "bot"

the code in "top" is
--------------------------------
<html>

<div id=name></div>

</html>
--------------------------------


How do i make the word "helloworld"

get automatically loaded by another html page
loaded in "bot"

the code will in second html page that is loaded in "bot"
will use window.load

but how?

thanks

Andrew



load in to id=name

Charles
09-03-2003, 05:13 AM
You're going to have to put something inside that DIV to start, else browsers will "collapse" the thing and you're going to have to name your "top" frame something else. Once you've done that...

top.bot.document.getElementById('name').firstChild.data = 'Hello, World!'

andrew1234
09-03-2003, 05:19 AM
thanks for the help

I'll give it a try

andrew

andrew1234
09-03-2003, 10:34 AM
This works if i make it a mouse over.

i have two frames "top" and "bot"
how do i make

this html script put the word 'hello' into the id tag 'fred'
in the frame "bot" from the frame "top"



<html>
<head>

<script>
top.bot.document.getElementById('fred').firstChild.data = 'hello'


</script>

</head>

<body>

thanks

Moderators Note
you did no need to start a new thread,while your previous thread has a sufficient answer to your question.
If you have problem understanding the solution ,you can as the responder to describe it.

Charles
09-03-2003, 11:54 AM
Get each of your pages to pass the validator at http://validator.w3.org/ and then post your URL.