Click to See Complete Forum and Search --> : write to div in parent frame


freefall
08-01-2003, 10:39 AM
Hello, I would like to know how to write to a div element located in a frameset page from a page loaded into the frameset. I would like the whole line of code to write something to this div.

The div is written using javascript (to allow for separate IE, NS, Opera positionings) and I am writing a script to write certain links to the div when a page is opened.

Thank you for your help,
Ian

Exuro
08-01-2003, 11:52 AM
Try something like this:

parent.nameOfTargetFrame.document.getElementById('idOfDiv').innerHTML = "HTML for what you want written into the division!"

freefall
08-01-2003, 12:08 PM
Thank you,
parent.top.document.getElementById('horizlinks').innerHTML
works perfectly. I was really really close, just not quite there, now it works fine!

- Ian
www.degreethree.com