Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.


Thanks!!
Posted
Comments
ZurdoDev 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
ZurdoDev 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.
ZurdoDev 12-Jul-13 12:58pm    
Perhaps you can explain why you want it activated.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900