473,748 Members | 6,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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><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 + '&nbsp;' + cat[item][3] + '&nbsp;' +
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
Aug 20 '06 #1
4 10322
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="win dow.status=\'' + TitleStatus + '\'; return true">Buy this
You sure that works? Hint: It doesn't.
newWindow =
window.open('', 'NewWin','width =925,height=600 ,menubar=no,sta tusbar=yes,ti
tlebar=yes,tool bar=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.javas cript 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="win dow.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**********@go oglemail.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="w indow.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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 20 '06 #4
<snip>
>onmouseout="wi ndow.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
4380
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 the enlarged version of said thumbnail. This works fine on all current browsers I've tested. However, in case I do not close the popup but click on another thumbnail instead, only IE replaces the enlarged pic by the new one, Firebird and Opera...
5
3974
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 to pass some extra values to 1 script. 1. <SCRIPT LANGUAGE="Javascript"><!-- function popUp(url) {
38
5087
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 out what i'm doing wrong, and so far it seems i'm doing it the right way. Here's my code...any suggestions would be appreciated. <script language="javascript"> <!-- window.open("256fx/index.htm", "", "height=400, width=600"); //-->
4
3601
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 app has been around for more than a year. It may be because of I.E. SP2, but I'm not sure yet. If anyone has experienced this problem, I would appreciate some help. Thanks, Terry.
23
6411
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 align="center">
3
3807
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 only if the browser that index.jsp is opened in is NOT maximized. If index.jsp is maximized and then I click on the test link that fires off the openMain function, the browser that is opened for the popup is also maximized. function...
1
3937
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 resizeable. its working fine in my system, but when i open the same popup window from our testing site, its opening with status bar and a small IE icon(done symbol). how to avoid this? thanks. Arun.K.S
1
2471
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 script below which does open a new window, but not in a centred position. Here is the link to the url:
2
3385
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 field(s). The popping-up seems to work just fine; it's the tearing down that's giving me grief. If I stick a onmouseout event on the same input field that caused the onmouseover/pop-up, it starts to flicker 'cos the <divis placed for esthetically...
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9372
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9324
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8243
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.