Forum Moderators: open
not sure if this should be in this forum, but ...
i have a framed page (top banner, left nav, main frame) with an alphabetical list in the main frame.
as there is alot in the list , i want an alphabet list so that each letter can be clicked to find the start of that on the page..
usually ofc this is not a problem, but as i want the list in the top frame, how do i get the links to fire in the main frame..?
tia
<frameset cols="50%,50%">
<FRAME SRC="testFrame1.html" name="frame1">
<FRAME SRC="testFrame2.html" name="frame2">
</frameset>
Here is a link that can be placed in frame1 that changes the document in frame2 with the use of target as long as you have named your frames you can call on each one of them using the target in the anchor tag.
<a href="testFrame3.html" target="frame2">Test</a>
HTH,
-George
thanks for that.. its funny i knew that all along.. DOH!
the problem is that the main frame always as different things in..
i think i have it sussed now tho , i am going to loop around all the anchors in the banner frame, changing the hrefs to the current repot in the main frame..
thanks again AF
ttfn
I am a little lost to what your complete code looks like.
>>for (myA in arrA) {
>>myA.href = "change it here....
>>}
Are you looping around your array of anchor tags at this point? In which case you would need your index identifier [i] in place when you are changing the value of the href statement.
If you could post a little more of your code I will see what I can do to help you a little further.
-George
for (myA in arrA) {
arrA[myA].href = "change it here....
}
but a for .. in probably isn't a good thing to use, since one of the myA values returned will be 'length'.
Use numerical indexing instead.
for (var k=0;k<arrA.length;k++) {
arrA[k].href = "change it here....
}