Click here to Skip to main content
11,932,402 members (54,520 online)
Rate this:
Please Sign up or sign in to vote.
See more: Javascript jQuery
Hi Guys,

I have a php page in which 6 iframes(f1, f2, f3, f4) in f1 there are 2 iframes(f11, f12).
I want to switch from f11 to f2. I am not able to do that.
Kindly suggest me.

Posted 12-Jul-13 6:45am
ryanb31 12-Jul-13 11:52am
What have you tried and where are you stuck? What do you mean by switch from f11 to f2?
Sumit Kumar Singh India 12-Jul-13 12:25pm
Means i have a button in page2.php which is src of f11 iframe( its a inner iframe of f1 iframe), requirement is that onclick of button f2 iframe should be active
ryanb31 12-Jul-13 12:28pm
Active? As in the if the user clicked the frame? Did you google for jquery activate iframe?
Sumit Kumar Singh India 12-Jul-13 12:55pm
Now i am able to get iframe using this code
var frm1 = window.parent.window.document.getElementsByTagName("iframe");

but still not able to activate iframe.
ryanb31 12-Jul-13 12:58pm
Perhaps you can explain why you want it activated.
Sumit Kumar Singh India 12-Jul-13 14:03pm
I have 4 div as a tab each div has a iframe. First iframe contains two another iframe. I want make active 2 tab(f2) from inner iframe.
ryanb31 12-Jul-13 14:24pm
I still can't visually see what you are talking about. Perhaps you could use jquery ui's tabs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 12 Jul 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100