Title bar in new window

G

Guest

I would like to be able to control the message displayed in the title bar of
the browser window when I have a hyperlink with a behavior to open the link
in a new window. Now, for example, if the link is to display an image in the
new window, the file name of the image (actually the whole url of the image)
is displayed. How can I alter this? Thanks.
 
T

Thomas A. Rowe

Put the image on a page, assign a title to the page, and then load the page in the new window

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
S

Stefan B Rusynko

If you are opening a html page in a new window the Browser Title comes from the <title> tag
If you are just opening an image in a new browser window there is no html so the title is the image URL
- only way around it is to open the new window w/ JavaScript as a popup (where you can set the window title)

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I would like to be able to control the message displayed in the title bar of
| the browser window when I have a hyperlink with a behavior to open the link
| in a new window. Now, for example, if the link is to display an image in the
| new window, the file name of the image (actually the whole url of the image)
| is displayed. How can I alter this? Thanks.
 
G

Guest

Thanks. That sounds helpful, except that I have very limited knowledge of
javascript. In the FP script, what's the modification to specify title:

function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
windowProperties+='toolbar=yes,'; if(loc==false)
windowProperties+='location=no,';
else windowProperties+='location=yes,'; if(sts==false)
windowProperties+='status=no,';
else windowProperties+='status=yes,'; if(menu==false)
windowProperties+='menubar=no,';
else windowProperties+='menubar=yes,'; if(scroll==false)
windowProperties+='scrollbars=no,';
else windowProperties+='scrollbars=yes,'; if(resize==false)
windowProperties+='resizable=no,';
else windowProperties+='resizable=yes,'; if(w!="")
windowProperties+='width='+w+',';
if(h!="") windowProperties+='height='+h; if(windowProperties!="") {
if( windowProperties.charAt(windowProperties.length-1)==',')
windowProperties=windowProperties.substring(0,windowProperties.length-1);
}
window.open(url,name,windowProperties);
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top