I find my self in a javascript function as a result of a onload clause in the body of a page. How do I determine the name of the frame I am in? I don’t know the id.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s been a long time since I’ve worked with framesets, but I think what you need is loop through the frames in the parent document until you find that the frame is the same as the document’s
thisglobal object. Once you know this, just get the id of the tag normally. One way of doing this is: