interactive wrote:
is there anyway to get the title of a page that is in a frame..from example i have index.php and it has a frame called centerframe there are links on index.php which cange the page that is in the centerframe how would i get the title on this? all help is appreciated
That all depends, apparently, on whether you have write access the files in the centerframe.
If you do, add this to your centerframe body tag:
onload="parent.indexframe.location='index.php?title='+document.title;"
Then just make sure index.php has something like:
<?
if (isset($title)){echo $title;}
?>
Doesn't seem to work when you use the onload event out of the frame tag in the frameset. However, I can get the url of the frame (that I don't have the luxury to write javascript in), but title returns undefined each time???
Something mentioned a security issue may be the cause. No idea.
Hope this helps