to get the frame index and name in IE & Mozilla

A

arungenesis

Hello people,

I'm working with HTML and Javascript. I have some problems in handling
frames. I have the following questions:

1. How do I retrieve the name of a FRAME in IE & Mozilla using a
onclick event handler

I have done this for IE and it is as follows:
this.frames.name
The above thing will be called inside the event handler.
I need to know the same for Mozilla and I couldn't use the above
as it is not working there.

2. How do I retrieve the FRAME index in IE & Mozilla using a onclick
event handler.

The index here I mean is:
frames[index]
I exactly want the integer of the index.

Thanks in advance,
MAK
 
A

arungenesis

Sorry Mr. Randy

The above code you suggested is not working. It is returning error in
the error console of Mozilla. The error is as follows:

parent.frames[this.frame] has no properties

What can I do now? Do you have any other suggestions...


thanks and regards,
MAK
 

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

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top