Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Page title from html in frameset

Featured Replies

Hi everyone, I'm new here and this is my first post.

 

Is it possible to get a framed page to have the title of the page within it? I'm trying to mask that a blog is on a different server and I've used a framset to do it, all seemed fine untill I realised it didn't have teh page titles that the blog had....

 

 

Is this possible? or is there another way to do it please?

 

Any help much appreciated.

 

Pod.

when you say title do you mean <title> as in what you see at the top of your browser or do you mean headings? do you have a link of what you are doing?

  • Author
when you say title do you mean <title> as in what you see at the top of your browser or do you mean headings? do you have a link of what you are doing?

 

 

Yes thats what I mean. I have a blog here http://www.you.uk.com.celticwebsolutions.co.uk/blog/ but I want it to show up as being here http://www.you.uk.com/blog.html

 

 

the blog.html page does not pick the page titles up from the pages that the frameset is showing. The code on the blog.html page is as follows

 

<frameset border="0" frameborder="0" framespacing="0" cols="100%">
  <frame src="http://www.you.uk.com.celticwebsolutions.co.uk/blog/">
</frameset>

 

So it doesn't pick up the page titles or the page icon from the site within the frameset. Is it possible to alter anything so that it does?

In the page inside the frame, some JavaScript on page load should do it.

 

This isn't tested, because I don't work with frames (horrible things), but how about something like:

 

parent.document.title = document.title;

 

EDIT: Actually no, that won't work, because cross-domain scripting is never permitted. Your best option is to switch to a host that actually lets you run the blog on your domain.

You may be allowed to add the onLoad event to the frame, rather than the script on the page inside the frame.

 

Once the frame is loaded, get the title of that page and insert it into your websites title tag.

  • Author
You may be allowed to add the onLoad event to the frame, rather than the script on the page inside the frame.

 

Once the frame is loaded, get the title of that page and insert it into your websites title tag.

 

 

Excuse my ignorance but how exactly would I do that? Could you give me some example code please. Would it update as the page titles changed?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.