Hi,
I am calling the function showpopupWindow (item) to open and write a
popup window. When testing in IE6 locally the popup window displays my
text in both the title and status bars but when viewed online from my
website the titlebar text is preceded by the full URL and a - ( eg
http://www.........co.uk - text I want to display) and the status bar
appears to only display Downloading picture
http://www..........co.uk/..../..../image.jpg... which only changes to
my text after hovering over 'Buy this item' or 'Contact Us' which
contain onmouseover and onmouseout code.
Although it reduces the amount of text I can display, I can live with
the titlebar if necessary but particularly want to display much more
useful information in the status bar.
Thanks
function showpopupWindow (item) {
var TitleStatus = 'text I want to display'
htmlTxt = '<html><head><t itle>' + TitleStatus + '</title></head>';
htmlTxt += '<BODY onload="window. titlebar=\'' + TitleStatus + '\';
return true, window.status=\ '' + TitleStatus + '\'; return true"
leftmargin="5" topmargin="5" scroll="auto">' ;
htmlTxt += '<div align="center"> ';
............... ......
............... ......
htmlTxt += '<td width=20%><a href="order_for m.htm"
onmouseover="wi ndow.status=\'c lick to buy this item\'; return true",
onmouseout="win dow.status=\'' + TitleStatus + '\'; return true">Buy this
item</a></td><td
width=20%><a href="mailto:ad ***@mysite.co.u k?subject=Mysit e Sales - ' +
menuStr + ' - Item ' + item + ' ' + cat[item][3] + ' ' +
cat[item][4] + '" onmouseover="wi ndow.status=\'c lick to email us\';
return true", onmouseout="win dow.status=\'' + TitleStatus + '\'; return
true">Contact Us</a></td><td><p align="left"><a
href="javascrip t:window.close( );">Close window</a></td></table></td>';
htmlTxt += '</tr><tr><td>&nbs p;</td></tr></table></div></body></html>;
newWindow =
window.open('', 'NewWin','width =925,height=600 ,menubar=no,sta tusbar=yes,ti
tlebar=yes,tool bar=no,location =no');
newWindow.docum ent.write(htmlT xt);
}
--
Jon