473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

hiding URL in popup window title and status bars

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:ad***@mysite.co.uk?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,menu bar=no,statusbar=yes,ti
tlebar=yes,toolbar=no,location=no');
newWindow.document.write(htmlTxt);
}

--
Jon
Aug 20 '06 #1
4 10303
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,menu bar=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.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 20 '06 #2
Randy Webb wrote:
<snip>
>
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.
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

Aug 20 '06 #3
ul**********@googlemail.com said the following on 8/20/2006 6:52 PM:
Randy Webb wrote:
<snip>
>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.

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.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 20 '06 #4
<snip>
>onmouseout="window.status=\'' + TitleStatus + '\'; return true">Buy this
You sure that works? Hint: It doesn't.
Oh, it does - depends on your IE 6 patch-status.

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

Aug 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows...
5
by: Obantec Support | last post by:
Hi i leached some code and strung together a popup i need for a page with 5 help buttons. Now i could use 5 scripts and pre-load the values but i would rather get a better understanding of how...
38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
4
by: Terry | last post by:
When I launch a popup window from our application, the status bar now shows up for some reason. I explicitly turn it off in the code that launches it. This problem just started happening after our...
23
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div...
3
by: Bob | last post by:
I am trying to create a popup page (to act as a menu) from a parent page. When the parent page (index.jsp) calls my popup function (see below) it will properly open the correct size browser window...
1
by: sarunmphil | last post by:
Hi, I am opening a popup using showmodal dialog from our testing site. In my development system i write code for opening the popup in showmodal dialog with no scroll bars, no status bars and not...
1
by: Socrates | last post by:
Hi - Have tried for half and hour to get this script to work: I am trying to close the parent window while opening a centred new child window I would be grateful if someone could correct the...
2
by: Richard Maher | last post by:
Hi, I'm trying to use the Visibility Style attribute for a Div to effectively PopUp a lightweight window with some additional context-sensitive information, when a user mouses over a given...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.