iframe question
- Started
- Last post
- 7 Responses
- laboboy
does any1 know how can i change 2 iframes with one click
- theflow0
target= ? in the h ref
- EveryNewDay0
Hey, the code to change two frames with one link is as follows... This can be applied to regular frame sets or a couple iframes. Include this code for the javascript on the page that contains the href link:
----------------------Untitled Document
link
----------------------
Make sure that where it says 'parent.topframename.location' that 'topframename' is changed to the actual name assiged to the frame you want to target.
Hope this helps!
- EveryNewDay0
schnap! the code didn't come though. I'll try again....
(((Untitled Document
link
)))
- EveryNewDay0
SCRIPT language="JavaScript">
/SCRIPT>
AND this as your link:
a href="javascript:change2()">link /a>
And make sure that where it says 'parent.topframename.loca
tion' that 'topframename' is changed to the actual name assiged to the frame you want to target.
- EveryNewDay0
SCHAIZA!! I really dorked this thread didn't i?
You can view the working source code here:
http://www.everynewday.com/ifram…
apologies
- laboboy0
hey man dont worry about it. thanks alot for helping this much. ima go check to see if it works for me. =)
- mbr0
Take a look at my site. I am using a little js to change 3 iframes. I'd send you the tut link, but it's not on this computer.