Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting head tag information
Message
De
04/05/2001 05:53:36
 
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00501867
Message ID:
00503386
Vues:
18
This message has been marked as the solution to the initial question of the thread.
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform