Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
How to change browser title with framed forwarding?
Old 08-19-2003, 07:00 PM How to change browser title with framed forwarding?
Average Talker

Posts: 21
Trades: 0
Hiya, I've just bought a domain name from Easily.co.uk and am using framed forwarding (cloaking) to point that domain to some free Web space that I get with my Blueyonder broadband.

The problem is that the browser title contains the basic domain name, because that's what Easily's forwarding page contains. They won't let me change the contents of that forwarding page without buying hosting from them.

So how can I change the browser title?

Obviously, the <TITLE> tags in my site are ignored as my site's pages are contained within Easily's frame. So I thought JavaScript might help. I tried putting this in the head of my HTML page:

<script>
<!--
top.document.title='Welcome to my Web site';
//-->
</script>


Unfortunately, this doesn't change the browser's title text.

Any ideas on how I can fix this?

Thanks,
May

Last edited by may_hem1; 08-19-2003 at 07:40 PM..
may_hem1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-19-2003, 07:49 PM
david's Avatar
King Spam Talker

Posts: 1,314
Location: Glasgow, UK
Trades: 0
Try this instead:
Code:
<script>
<!--
parent.document.title='Welcome to my Web site';
//-->
</script>
I think that should work.
__________________

Please login or register to view this content. Registration is FREE
- Everything a webmaster needs - for free

Please login or register to view this content. Registration is FREE
- Free web hosts reviewed and rated

Please login or register to view this content. Registration is FREE
- Impartial hosting directory - Add your host today for FREE
david is offline
Reply With Quote
View Public Profile
 
Old 08-19-2003, 08:40 PM
Average Talker

Posts: 21
Trades: 0
Thanks for your suggestion David, but unfortunately it doesn't work.

Strange thing is that I put the following code into the head of my main 'index.html' page and it doesn't work when you view the site using the purchased domain name, but it does work when I type in the long URL for my Blueyonder Web space:

<script>
<!--
if (opener) {
alert('there is an opener');
}
else
{
alert('the title is: ' + top.document.title);
}
parent.document.title='Welcome to my Web site';
//-->
</script>

I.e. I don't get an alert at all when I type the purchased domain name into a browser, but I do get an alert when I type in the free Web space URL directly.

This is strange as all that Easily have in their forwarding Web page is a FRAME tag pointing to the free Web space URL.

Any ideas on how to fix this?

Thx,
May
may_hem1 is offline
Reply With Quote
View Public Profile
 
Old 08-19-2003, 09:05 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Have you tried changing it into a function, then calling the function in the BODY tag on load? Just a quickie thought...
techwench is offline
Reply With Quote
View Public Profile
 
Old 08-19-2003, 09:41 PM
Average Talker

Posts: 21
Trades: 0
Quote:
Originally posted by prissed
Have you tried changing it into a function, then calling the function in the BODY tag on load? Just a quickie thought...
Thx for the suggestion. Again, this only works when I go directly to the free Web space, but not when I go to the purchased domain.

Any other ideas?

Thanks,
May
may_hem1 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to change browser title with framed forwarding?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32822 seconds with 12 queries