473,624 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hiding a div in a popup window

Hi all,

If a page is opened in a popup window, banner1 should be hidden, but it
should be visible if opened in a normal window.

I am using following code:

<script>
function hideBanner(){
if(window.opene r){
document.write( '<style>#banner 1{ display:none; }</style>');
}
}
hideBanner()
</script>

See demo page: http://kiranmn.netfirms.com/temp/opener.html

This code is working as expected in Win2000/IE 6.

But in
OS: Windows XP Home SP2
IE: 6.0.2900.2180.x psp_sp2_rtm.040 803-2158

banner1 is hidden even in opener (that is parent) window. Anything to
do with return value of 'window.opener' property?

Any of you guys facing this problem in your browser?

Thanks in advance

- Kiran Makam

Jul 23 '05 #1
1 1455
To test the demo page (in parent window as well as child window), copy
the link kiranmn.netfirm s.com/temp/opener.html and paste it in your
browser's address bar.

if you click the link, page openes in a popup and banner1 getts hidden.

- Kiran Makam

Jul 23 '05 #2

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

Similar topics

1
18301
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event, but I can't figure out how to get the popup to appear in the same browser window. In this code the user is presented with "Yes", "No" or "Cancel". Yes allows the popup to spawn a window, No should load the popup in the same window and Cancel...
15
65750
by: Code Monkee | last post by:
How can the toolbar and menubar be hidden in IE? When opening the window via javascript I can specify 'toolbar=no,menubar=no', which works fine. However if the window already exists how can I remove them? If the browser is Netscape I can use javascript: window.toolbar.visible = false; window.menubar.visible = false; but IE produces the error: "'window.toolbar.visible' is null or not an object".
1
4648
by: DJ | last post by:
I've got a rollover-popup menu which pops below the viewable area of my top frame. I don't want to resize the frame. Any way I can pop over the frame? Or make the pop-down background solid? Or pop side-ways? or pop upwards? Any suggestions welcome. Please respond to list, email isn't working.
1
1299
by: apgoodb | last post by:
I have an application that uses various popup forms. All of these forms are maximized when open. When they open you can see the windows start button and quicklaunch toolbar, but after a minute or so, the popup form takes over the whole screen and the user can't get to the quicklaunch toolbar without closing down. Any ideas what is causing this?
8
2865
by: Jho | last post by:
Is it wise to do the following to hide html source and other info. I plan to do a popup window which would close my existing web page and popup a window in its place without toolbar and menubar. are there any disadvantages of hiding browser toolbar and menubar ?
7
3660
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses pageA.html 2. User clicks on menu link to open popup.html 3. pageA.html checks if popup.html is already open. It is not, open
4
10318
by: Jon | last post by:
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...
3
1947
by: Andy Lim | last post by:
Hi all, In my recent asp.net (2.0) project, I want to give a desktop-application look and feel to my users. I think I'll do it by hiding the browser's default menu & toolbar right from the default page (i.e: default.aspx), which also serve as my login page. And it should have cross-browsers capability. Can anyone give me some examples on how to do it?
2
3369
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
8238
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
8174
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8624
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
8336
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
8478
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
5565
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
4082
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
4176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.