|
im creating a website using horizontal frames but i`m having a problem with the page title.
i have a top frame with buttons, and these buttons open web pages in the main frame below the top frame. Instead of showing the page title of the main frame, it displays "untitled document".
please help as its really annoying me!!
thanx
lee
|
|
|
when you use frames you can only have one page title for the whole site. It won`t change for different pages as it only displays the title of the frameset. To display the title you simply add the title tag to the top of the frameset
|
|
|
there is a way around this, where you can change the framset title to the title of the inner frame.
<script>
top.document.title = document.title
</script>
|
|
|
ps. the code goes in the main frame html file! (the inner one)
|
|
|