i understand that you need to change the title of your index page, but when accessing the index page i am only aloud to view the the code for the two individual frames. I have titled these two frames but can not find how to access the index html code because again when i open the index.html it takes me to those to two frames and not the entire index code.

Dani AI

Generated

Frames that display fine inside the browser can still leave the browser tab labeled "Untitled Document" when the top-level page (the frameset or wrapper file the browser actually opened) does not include a <title> element. That is why saw titles inside each frame but the tab did not change. As pointed out, visual editors sometimes expose only the framed documents and hide the wrapper; and as implied, looking at the top-level HTML shows whether a title exists.

To fix it, edit the top-level file that the server serves as your site entry (usually index.html) and put a title in its head. A minimal example of where the title belongs:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Your site title here</title>
</head>
<frameset cols="50%,50%">
  <frame src="left.html">
  <frame src="right.html">
</frameset>
</html>

If you cannot change the frameset file directly (for example, lack of host access or a site builder that prevents editing the wrapper), a child frame can set the top-level title with JavaScript when both documents share the same origin:

if (parent && parent.document) {
  parent.document.title = "New title";
}

Note: the same-origin policy will block this across different domains or protocols. Also consider migrating away from framesets — they are obsolete and responsive layouts built with HTML/CSS are more reliable; see the HTML frameset notes on MDN for details (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/frameset).

Quick checklist: locate the actual index file on the server, confirm/insert a <title> in its head, save and upload, clear browser cache, and retest. If a WYSIWYG hides the wrapper, open the file in a code view or download it for direct editing.

Recommended Answers

All 3 Replies

Osirus;

It sounds to me like you're using a WYSIWYG editor for your website coding.

If you're attempting to modify your frameset file (index.html) and you are using, for example, Adobe Dreamweaver you can access the main frameset (and it's associated settings) by going to Modify > Frameset > Edit NoFrames Content.

Other editors generally use a similar method to modify the frameset page itself.

Alternately, you can copy the metatags from your content frames and manually paste them into the index.html file via a text editor like notepad.

Hope that helps :)

wow thank you that helped a lot.

Member Avatar for Member #334542

Execute the index file in browser and go to viewsource from menu. It will open the code of index file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.