[thelist] targeting document inside frameset

Scott Blanchard octigonuser at hotmail.com
Thu Oct 23 14:21:10 CDT 2003


I have a frameset that looks like this:

<FRAMESET rows=27,* border="0" FRAMESPACING="0" TOPMARGIN="0" LEFTMARGIN="0" 
MARGINHEIGHT="0" MARGINWIDTH="0">
  <FRAME name="x8toolbar" src="x8toolbar.html" scrolling="no" border="0" 
frameborder="no" noresize TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0" 
MARGINWIDTH="0"></FRAME>

    <FRAMESET id="x8main" name="x8main" bordercolor="silver" cols="250,*" 
border="1" frameborder="1" FRAMESPACING="2" TOPMARGIN="0" LEFTMARGIN="0" 
MARGINHEIGHT="0" MARGINWIDTH="0">
      <FRAME id="x8menus" name="x8menus" src="x8menus.html" TOPMARGIN="0" 
LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" FRAMEBORDER="0" BORDER="0" 
scrolling="no"></FRAME>
      <FRAME id="contentFrame" name="contentFrame" 
src="../scripts/x8webtop_scripts/x8splash.htm" FRAMEBORDER="no" BORDER="0" 
BORDERCOLOR="#CCCCCC" scrolling="no"></FRAME>
    </FRAMESET>
</FRAMESET>


And I want to have a function located in "x8menus.html" that will insert 
some code into a document contained inside the "contentFrame" frameset. But 
no matter what I do, I cannot access anything that is located in that 
document.

Here is the alert I am trying to execute to no avail:

alert(top.parent.document.getElementById('contentFrame').window.document.edit_object.document.body.innerHTML);

Mozilla says ...

top.parent.document.getElementById('contentFrame').window HAS NO PROPERTIES

_________________________________________________________________
Never get a busy signal because you are always connected  with high-speed 
Internet access. Click here to comparison-shop providers.  
https://broadband.msn.com



More information about the thelist mailing list