hiding URL in popup window title and status bars

J

Jon

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><title>' + 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_form.htm"
onmouseover="window.status=\'click to buy this item\'; return true",
onmouseout="window.status=\'' + TitleStatus + '\'; return true">Buy this
item</a></td><td
width=20%><a href="mailto:[email protected]?subject=Mysite Sales - ' +
menuStr + ' - Item ' + item + '&nbsp;' + cat[item][3] + '&nbsp;' +
cat[item][4] + '" onmouseover="window.status=\'click to email us\';
return true", onmouseout="window.status=\'' + TitleStatus + '\'; return
true">Contact Us</a></td><td><p align="left"><a
href="javascript:window.close();">Close window</a></td></table></td>';
htmlTxt += '</tr><tr><td>&nbsp;</td></tr></table></div></body></html>;

newWindow =
window.open('','NewWin','width=925,height=600,menubar=no,statusbar=yes,ti
tlebar=yes,toolbar=no,location=no');
newWindow.document.write(htmlTxt);
}
 
R

Randy Webb

Jon said the following on 8/20/2006 3:56 PM:
Hi,

I am calling the function showpopupWindow(item) to open and write a
popup window.

Uh oh.
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

Yes, that's the way it works.
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.

The status bar is already used for "useful information", you aren't
trying to improve it, you are attempting to cripple it.
onmouseout="window.status=\'' + TitleStatus + '\'; return true">Buy this

You sure that works? Hint: It doesn't.
newWindow =
window.open('','NewWin','width=925,height=600,menubar=no,statusbar=yes,ti
tlebar=yes,toolbar=no,location=no');

IE7 defaults to displaying the location bar in a popup no matter what
you define it as in the window.open call.
 
U

ulrich.kautz

Randy Webb wrote:
The status bar is already used for "useful information", you aren't
trying to improve it, you are attempting to cripple it.


You sure that works? Hint: It doesn't.

Oh, it does - depends on your IE 6 patch-status. It was Security-Update
no Q832894 which fixed this issue:
http://support.microsoft.com/kb/833786/EN-US/

Anyway, on my IE it does work fine - but i have to admit, its quite old
(Win(e)98).. Thus, on a "normal" IE out there, it won't work at all..
Probably Jon uses some older Version, like mine, thats what confused
him.


Ulrich Kautz
 
R

Randy Webb

(e-mail address removed) said the following on 8/20/2006 6:52 PM:
Randy Webb wrote:


Oh, it does - depends on your IE 6 patch-status.

Or whether you are using IE 6. I don't, it is IE 7.

As for it working for me, not in Firefox, not even close.
 
U

ulrich.kautz

Or whether you are using IE 6. I don't, it is IE 7.

OK, I thought you were challenging that it does (or rather did) work in
IE 6.. Never mind.
As for it working for me, not in Firefox, not even close.

Fully agreed.


Ulrich Kautz
 

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

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top