I believe this only works if you execute the script before the page has
loaded, once loaded it doesn't (at least for me).
Joe
----- Original Message -----
From: "Robert Nyman" <robert.nyman@c...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Thursday, November 21, 2002 10:04 AM
Subject: [javascript_howto] SV: RE: Change title of modal dialog in IE?
This will not work, since the line with document.title isn't executed
until the Modal Dialog is closed.
But, Van Knowles, for me, this works just fine (IE 6, though):
One page with this script:
window.showModalDialog("yourURL");
And then within yourURL.htm:
document.title = "Your title";
/Robert
-----Ursprungligt meddelande-----
Från: Johnson, Israel [mailto:IJohnson@R...]
Skickat: den 20 november 2002 20:35
Till: JavaScript HowTo
Ämne: [javascript_howto] RE: Change title of modal dialog in IE?
Try: SomeWinName.document.title = "text"
Make sure that you named the dialog before opening it....
Var someWinName = window.showmodalDialog(.........
someWinName.document.title = "text"
-----Original Message-----
From: Van Knowles [mailto:vknowles@s...]
Sent: Wednesday, November 20, 2002 2:44 PM
To: JavaScript HowTo
Subject: [javascript_howto] Change title of modal dialog in IE?
I am trying to use javascript to set the title in the IE browser window
for a modal dialog.
In the page that loads into the modal dialog, I have the line:
window.document.title='my title';
but this does not seem to do anything.
Is there a way to do this (IE 5.5 and higher)?
Thanks!