I'm working with a web site that has frames defined as:
<frameset rows="60,*" frameborder="ye s" border="0" framespacing="0 " cols="*"
bordercolor="#e eeeee" topmargin="0" leftmargin="0" marginheight="0 "
marginwidth="0" >
<frame name="topFrame" scrolling="auto " src="top.asp"
bordercolor="#c ccc66" frameborder="ye s" topmargin="0" leftmargin="0"
marginheight="0 " marginwidth="0" framespacing="0 ">
<frameset cols="180,*" frameborder="YE S" border="0" framespacing="2 "
rows="*" bordercolor="#e eeeee" resize="yes" topmargin="0" leftmargin="0"
marginheight="0 " marginwidth="0" >
<frame name="leftFrame " scrolling="auto " src="left.asp"
bordercolor="#e eeeee" frameborder="no ">
<frame name="basefrm" src="common/DisplayInformat ion.asp"
scrolling="auto " bordercolor="#e eeeee" frameborder="no ">
</frameset>
</frameset>
I need to get the width of "leftFrame" from a script running in one of the
other frames (usually "basefrm").
I tried parent.leftFram e.width, but it returns "undefined" (but
parent.leftFram e.name does return "leftFrame" ). I suspect I need something
before ".leftFrame ", since the framesets are nested. How would I refer to
leftFrame to get its width?
<frameset rows="60,*" frameborder="ye s" border="0" framespacing="0 " cols="*"
bordercolor="#e eeeee" topmargin="0" leftmargin="0" marginheight="0 "
marginwidth="0" >
<frame name="topFrame" scrolling="auto " src="top.asp"
bordercolor="#c ccc66" frameborder="ye s" topmargin="0" leftmargin="0"
marginheight="0 " marginwidth="0" framespacing="0 ">
<frameset cols="180,*" frameborder="YE S" border="0" framespacing="2 "
rows="*" bordercolor="#e eeeee" resize="yes" topmargin="0" leftmargin="0"
marginheight="0 " marginwidth="0" >
<frame name="leftFrame " scrolling="auto " src="left.asp"
bordercolor="#e eeeee" frameborder="no ">
<frame name="basefrm" src="common/DisplayInformat ion.asp"
scrolling="auto " bordercolor="#e eeeee" frameborder="no ">
</frameset>
</frameset>
I need to get the width of "leftFrame" from a script running in one of the
other frames (usually "basefrm").
I tried parent.leftFram e.width, but it returns "undefined" (but
parent.leftFram e.name does return "leftFrame" ). I suspect I need something
before ".leftFrame ", since the framesets are nested. How would I refer to
leftFrame to get its width?
Comment