View Full Version : Changing the title of a window
jeepzy3
08-29-2002, 06:57 PM
I have a framed page with 6 frames. When the page initially opens, the title is "HOMEPAGE". If frame2 changes and the title of the page in frame2 is "How To Service Your Car", is there a way to dynamically change the title of the main window to "How To Service Your Car"? Or is there a way to change the text in the bubble of a mouseover at the bottom of the desktop area (the area that is to the right of the Start button) that shows you what windows are currently opened?
beetle
08-29-2002, 07:07 PM
function changeTitle(newTitle) {
top.document.title = newTitle;
}
event="changeTitle('New Title');"
jeepzy3
08-29-2002, 07:24 PM
Thanks. It works in IE but how about Netscape? I need it in both places. :(
beetle
08-29-2002, 07:43 PM
Uhh, according to the W3C it's correct (http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html.html#ID-1006298752) and it works for me in NS 6.2 and Moz 1.0
Are you working with NN4.x?
Here's the HTML of my testing page<html>
<head>
<title>Whatever</title>
<script>
function changeTitle(newTitle) {
top.document.title = newTitle;
}
</script>
</head>
<body>
<span onclick="changeTitle('wowzers')">here</span>
</body>
</html>
jeepzy3
08-29-2002, 07:47 PM
Yes, I need it for N4.75.
beetle
08-29-2002, 08:01 PM
Note: editorial opinion below only pertains to NN4.x
http://www.beachaccess.net/images/netscrape.gif http://images01.gograph.com/Images-8712/AnimatedGif/smiley_gun07.gif
Seriously...NS 4.x is a beotch to be compatible with, and because of that, I have spent literally ZERO seconds trying to, so I'm not the person who will know.
jeepzy3
08-29-2002, 08:08 PM
Thanks anyway. You were still a big help in knowing this can be done.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.