T
Trevor Lawrence
I posted this question on microsoft.public.scripting.jscript and I got an
reply from a regular to c.l.j. which:
1. Didn't answer the question I asked (last sentence), and
2. Implied that I had posted in the wrong place
Can anyone here help ?
BTW,
Perhaps I asked the wrong question, so I will rephrase it :
What do I have to do so that the header will display the contents of
document.title ?
(By "header" I mean that blue bar at the top which, in IE7, contains the
close button on the far right)
Post is here
=========
I have some JS code to alter the document title to something meaningful when
a picture is displayed. It works locally but not when the site is uploaded
to the web
For example in http://tandcl.homemail.com.au/index.html
<a href="javascript:newWindow('images/display/trevor.jpg','Trevor');">
<img src="images/display/trevor.jpg" alt=""
title='Click to see a larger picture'
style="float:left"
height="100" /></a>
newWindow uses window.open() to open
http://tandcl.homemail.com.au/picture.html in a new window
The call is
window.open('picture.html?picture=images/display/trevor.jpg&caption=Trevor&height=500&width=500','',',width=500,height=575,left=390,top=0')
picture.html calls a JS function getPic() using the parameters picture,
caption, height and width to write the image into an element, change the
document.title and alter the size of the element where the image is written.
Everything appears to work fine, except that the title is not displayed in
the blue bar. Instead it says
http://tandcl.homemail.com.au/?picture=images.display/trevor.jpg&caption=Trevor&height=........
etc
I added alert('document.title= ' + document.title) to the JS and for the
picture mentioned, it alerts
document.title = Trevor
So why is Trevor being passed to document.title but not displayed in the
header?
reply from a regular to c.l.j. which:
1. Didn't answer the question I asked (last sentence), and
2. Implied that I had posted in the wrong place
Can anyone here help ?
BTW,
Perhaps I asked the wrong question, so I will rephrase it :
What do I have to do so that the header will display the contents of
document.title ?
(By "header" I mean that blue bar at the top which, in IE7, contains the
close button on the far right)
Post is here
=========
I have some JS code to alter the document title to something meaningful when
a picture is displayed. It works locally but not when the site is uploaded
to the web
For example in http://tandcl.homemail.com.au/index.html
<a href="javascript:newWindow('images/display/trevor.jpg','Trevor');">
<img src="images/display/trevor.jpg" alt=""
title='Click to see a larger picture'
style="float:left"
height="100" /></a>
newWindow uses window.open() to open
http://tandcl.homemail.com.au/picture.html in a new window
The call is
window.open('picture.html?picture=images/display/trevor.jpg&caption=Trevor&height=500&width=500','',',width=500,height=575,left=390,top=0')
picture.html calls a JS function getPic() using the parameters picture,
caption, height and width to write the image into an element, change the
document.title and alter the size of the element where the image is written.
Everything appears to work fine, except that the title is not displayed in
the blue bar. Instead it says
http://tandcl.homemail.com.au/?picture=images.display/trevor.jpg&caption=Trevor&height=........
etc
I added alert('document.title= ' + document.title) to the JS and for the
picture mentioned, it alerts
document.title = Trevor
So why is Trevor being passed to document.title but not displayed in the
header?