can't refer to nested frame

  • Thread starter George Sicherman[aes] MTD43D29
  • Start date
G

George Sicherman[aes] MTD43D29

I have a program that opens a window to an HTML page that looks like this:

<HTML>
<HEAD>...</HEAD>
<FRAMESET ROWS="50%,50%">
<FRAMESET COLS="11%,11%,11%,11%,11%,11%,11%,11%,12%">
<FRAME SRC=...>
...
</FRAMESET>
<FRAMESET COLS="11%,11%,11%,11%,11%,11%,11%,11%,12%">
<FRAME SRC=...>
...
</FRAMESET>
</FRAMESET>
</HTML>

In JavaScript, I can access new_window.frames[0] but not new_window.frames[0].
frames[0]. I added some alerts to find out what was going on. Apparently
new_window.frames[0].frames is defined, but it's not an array object. In
fact, one of its members is 'frames', which is not an array either but a
window.

I ought to be able to reference new_window.frames[0].frames[0]. Why does
it not exist?

-:-
L See the funny little man,
Try and catch him if you can.
Quickly now! That's too slow--
Where did all your money go?

--The Roguelet's ABC
 
T

Thomas Hoheneder

Hello,

I dont't really now, why new_window.frames[0].frames[0] doesn't exist...
But to get the frame in the first row and the firt column, use
new_window.frames[0].top.frames[0]

It works both on IE6 and NS7. Hope this helps you.

Nice greetings from
Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top