473,769 Members | 3,840 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to know what the opener is loading from the opened window

Hi all,
I am new to javascript.
I have a window that on the 'onUnload' event opens a new window, the
question is: have I any chance to know in the new window what page is
the opener loading? (in the end I need to know the url of the page
which loading triggered the onUnload event)
thanks.
Jul 20 '05 #1
1 1540
"giurax" <gi****@yahoo.c om> wrote in message
news:87******** *************** ***@posting.goo gle.com...
I am new to javascript.
I have a window that on the 'onUnload' event opens a new window,
That is why pop-up blocking software is so popular these days.
the question is: have I any chance to know in the new window
what page is the opener loading? (in the end I need to know
the url of the page which loading triggered the onUnload event)


You chances of reading the URL of the window that attempts to open the
pop-up are close to zero. It might have just been closed (in which case
the user will be very annoyed that they now have another window to close
(maybe they will decide to get themselves a pop-up blocker at that
point, they certainly will not be left with a favourable impression of
your site). If they are navigating away from your site you will not be
able to read the URL of the new page because of cross-domain security
restrictions (unless you can persuade the user to first lower the
browser security setting to a dangerously low level (unlikely)). Which
just leaves you with the ability to read the URL if it happens to be a
page from your own site, and you don't need to be opening new window to
get that information.

Richard.
Jul 20 '05 #2

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

Similar topics

2
8838
by: find clausen | last post by:
I have opened this fullscreen (framed) window from a "top-page-setup-box" if (window.opener.top.location ....... How can I close it again from the same page, like: window.opener.top.location.top.close(); that doesn't work ...
16
34566
by: Robert Mark Bram | last post by:
Hi All! Is there a way to reference a window by name without doing something like this: open (, 'windowName'); The open method will open a blank window if there is no window with such a name. I am trying to organise a navigation structure between two windows with content from the same host.. I have been trying the following:
2
668
by: Raphael Bowen Giudice | last post by:
I'm opening a window in my main page using the window.open() function. With the new window opened, how do I call a function or an object from the main page. I'm using the window.opener() function but I receive a "persmission denied" error from the browser. Is there another way of doing this? Thanks.
1
2258
by: MrFez | last post by:
I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the value of a textbox in the main (parent) window by using the window.opener property to reference the textbox. Everything works fine initially. However if the the main window does a postback and the calendar is re-opened, its window.opener property will always be null. So: BEFORE main window...
1
1318
by: Hans Börjesson | last post by:
If i open a link either by using the right mouse menu "open in new window" or press shift (IE) on the link the page will be opened in a new window. From this window I can use the window.opener object to access the opening window. When doing this in NN7.1 I cannot access windows.opener. If I open the window with window.open I can also use the window.opener to access the opening window but not if I open the new window by pressing CTRL an...
5
3727
by: Dave | last post by:
I see this problem in IE but not Firefox. I have a page that opens a second page as a dialog box. If the Dialog is relaunched from a second instance on the page the Dialog window is reused, the controls are reinitialized but window.opener still refers to the original opener. I have simplified code than demonstrated the problem. This is the code for the base window which launches the dialog called Base.html:
19
31071
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). The problem is that after the reload, it brings you right to the top of the page. When I click 'refresh" on the original page, it brings me back to the original viewing position. Is there a way to duplicate this in from the popup window. Also,...
1
2653
by: MrFez | last post by:
I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the value of a textbox in the main (parent) window by using the window.opener property to reference the textbox. Everything works fine initially. However if the the main window does a postback and the calendar is re-opened, its window.opener property will always be null. So: BEFORE main window...
7
2865
by: MrFez | last post by:
Through some investigation it appears that selecting "Every visit to the page" for the IE caching setting "Check for new version of stored pages" causes the window.opener property of child windows to be set to null after the main page has excuted a postback. Can anyone explain this or at show that I'm wrong ? Is this a bug in IE ?
0
9579
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
9422
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
10035
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
9984
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
9851
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
6662
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
5293
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
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.