View Full Version : innerhtml in parent for iframe content source?

11-22-2005, 01:23 AM
Can you use innerHTML (or something else) in the parent of an iframe as the source of the iframeís content? I believe innerHTML is the answer here, although Iím very much a novice.

The idea is to use only one page. The site where my blog is located wonít let me upload a second page, so a js file is out, so is an iframe content page. Yes, Iíve tried linking it in from another site, and it works, but I get an error message: [Ďtop.w.framesí is null or not an object]

Iím using the iframe for my links, the blog is long (getting longer) and Iím using a floating iframe to follow the user down the page. Thanks for any suggestions, Iíll check back often.

11-22-2005, 04:52 AM
If you can't upload any pages to your site, an iframe is useless. It can only show something on another page. If you want to use innerHTML to change the content of a floating division, that could work. You would need to be able to edit your existing page at or near the text level to do this.