Forum Moderators: open

Message Too Old, No Replies

Changing window title from a framed page

frames redirect title

         

rjd0309

7:05 pm on Jun 20, 2005 (gmt 0)

10+ Year Member



Hi,

A domain-name service provides redirection to my web page. For example, if you entered the URL "www.example.com", their frame document would load my webpage from my domain

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<title>www.example.com</title>
</head>
<frameset rows="*">
<frame name="siteredirect" src="http://my.pitiful.007.site/topdirectory/" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0" noresize>
</frameset>
</html>

My question is, within my html, how can I change the window title from the framing page to something of my own choosing?

Thanks.
Robert

<Sorry, no personal URLs.
See Forum Charter [webmasterworld.com]>

[edited by: tedster at 8:19 pm (utc) on June 20, 2005]

tedster

8:22 pm on Jun 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Robert, and welcome to the forums.

This javascript works when the frameset and framed page are both from the same domain:

<script type="text/javascript">
void(parent.document.title='Title I Really Want');
</script>

You can try it and see if it works. Security concerns may block it on cross-domain frames, in which case you will not have much recourse.

rjd0309

9:13 pm on Jun 20, 2005 (gmt 0)

10+ Year Member



Thanks for the quick reply.

I tried it, and it didn't work, so it looks like I can't get there from here.

Regards,
Robert