>I have a site at propertyinvestor.co.nz which uses frames. I want to include "refer a friend" functionality and have all the code writtin in php. The refer fields will be on one frame but will pick up the reference to the other frame. It's a thing of beauty. However I'd like to feed back the title of the other frame to my user. ie: "Your referal to the Links Page has been sent" rather than "Your referal to rpimag/linklist.htm has been sent". Even though the title should never be used (because of the frame, index.html has control)it's always put on the page correctly.
>
>How can I use Javascript to get the data from the title tag?
Sarah,
You may use
frames collection to retrieve the title of a frame you need, for sample:
var firstFrameTitle = parent.frames(0).document.title;
// or
// var firstFrameTitle = top.frames(0).document.title;
var secondFrameTitle = parent.frames(1).document.title;
// and so on
HTH
Alex