473,399 Members | 2,278 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,399 software developers and data experts.

How do you close a frameset from a child window in NN4. This is driving me nuts.

In IE, from the child window of a frameset i use the function

top.window.close()

And this works in IE, but not in nn4!

How can i make this same effect in nn4?

please help
Jul 23 '05 #1
6 1753
Lee
<Th******@lvcm.com> said:

In IE, from the child window of a frameset i use the function

top.window.close()

And this works in IE, but not in nn4!

How can i make this same effect in nn4?


The "top" attribute of the current window is the window at the top.
Windows don't have an attribute named "window".

top.close()

Jul 23 '05 #2

"Lee" <RE**************@cox.net> wrote in message
news:cb********@drn.newsguy.com...
<Th******@lvcm.com> said:

In IE, from the child window of a frameset i use the function

top.window.close()

And this works in IE, but not in nn4!

How can i make this same effect in nn4?


The "top" attribute of the current window is the window at the top.
Windows don't have an attribute named "window".

top.close()


top.close() did not work
do you have any other ideas?

I called top.close() from a page within a framset in NN4 and it did Not
close the frameset.
I'm despereate for an answer. Any help is appreciated
Jul 23 '05 #3


Th******@lvcm.com wrote:
In IE, from the child window of a frameset i use the function

top.window.close()

And this works in IE, but not in nn4!

How can i make this same effect in nn4?


With script in Netscape 4 you can only close windows that script opened
with window.open. If the user opened the window in other ways a
confirmation dialog should come up asking him whether he agrees to
closing the window.
Besides that
top.window.close()
should work, if it doesn't I rather suspect you are not having it in the
right place, provide some context and make sure you check the Netscape
JavaScript console for any errors. Provide a URL maybe where the problem
occurs.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #4
DU
Th******@lvcm.com wrote:
In IE, from the child window
child window or child/inner frame? This is important to first untangle.

of a frameset i use the function
top.window.close()

parent.close()
if you meant the child/inner frame.
This also depends on the frameset containment hierarchy. Here, we don't
see what is your webpage, what is its frameset containment hierarchy (or
if you're actually referring to a real secondary window). In some cases,
parent.close() would be correct while in other cases, top.close() would
be the only correct solution.
Note that some browsers will neutralize recourse to close() if user-pref
setting disallow recourse to such method, even if the window was created
by javascript.
A general rule is that you can never close a window which was not opened
by javascript.
And this works in IE, but not in nn4!

Do you really want to support a browser which was designed more than 7
year ago? You should worry much more about supporting NS 7.1 and you
should consider dropping webpage based on frame design: it's widely
known that frames bring many usability and accessibility burdens to users.
How can i make this same effect in nn4?

please help


What had this post to do with java?

DU
Jul 23 '05 #5
> > In IE, from the child window

child window or child/inner frame? This is important to first untangle.
I mean a page that was loaded into a Frameset.
I don't know if that would be a child or inner frame.
of a frameset i use the function

top.window.close()

parent.close()
if you meant the child/inner frame.
This also depends on the frameset containment hierarchy. Here, we don't
see what is your webpage, what is its frameset containment hierarchy (or
if you're actually referring to a real secondary window). In some cases,
parent.close() would be correct while in other cases, top.close() would
be the only correct solution.
Note that some browsers will neutralize recourse to close() if user-pref
setting disallow recourse to such method, even if the window was created
by javascript.
A general rule is that you can never close a window which was not opened
by javascript.


Thanks for the info.
And this works in IE, but not in nn4!


Do you really want to support a browser which was designed more than 7
year ago? You should worry much more about supporting NS 7.1 and you
should consider dropping webpage based on frame design: it's widely
known that frames bring many usability and accessibility burdens to users.


Yes i know. I have a really picky client who saw that one of our local
Kinkos had NN4 on nearly every computer
and after that. I was requested to make the webpages NN4 compatible.
How can i make this same effect in nn4?

please help


What had this post to do with java?


It didn't, the forum comp.lang.java.javascript seemed confusing, but i
figured the discussion in that room was
javascript and not java
DU


Thanks bud.

Alex
Jul 23 '05 #6
Lee
<Th******@lvcm.com> said:


"Lee" <RE**************@cox.net> wrote in message
news:cb********@drn.newsguy.com...
<Th******@lvcm.com> said:
>
>In IE, from the child window of a frameset i use the function
>
>top.window.close()
>
>And this works in IE, but not in nn4!
>
>How can i make this same effect in nn4?


The "top" attribute of the current window is the window at the top.
Windows don't have an attribute named "window".

top.close()


top.close() did not work


Then it's not a window that you opened,
so you don't have permission to close it.

Jul 23 '05 #7

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

Similar topics

2
by: Irvin Amoraal | last post by:
Process: I have a form which uploads a file from client to server written in PHP. When the user presses the submit button, I use the "onSubmit" event to execute javascript to open a child window...
1
by: stef | last post by:
hi i ve got a problem that is driving me mad all afternoon i have flash site embedded in html and as i don t want to display the url (i ve got my reasons for that) i have built a single frame...
2
by: JPL Verhey | last post by:
(i hope somebody (else) will read and have an idea! Thnx) Hi, With a script in a popup window, I want to check if certain content is present in a page loaded into the frame "main" of the...
3
by: MrNobody | last post by:
I'm pretty tired from working all day on this program and this one simple task of showing a certain form when the app initializes is driving me nuts... It opens very briefly then quickly...
3
by: Isabel | last post by:
How can you close all child browser windows that where open by a parent browser window? I have links on a parent (main) page that opens the child page as a separate browser. However, I need to be...
12
by: Marty | last post by:
It seems all of the sudden that user controls that contain images are referencing image sources relative to the document that I drop the control on. This obviously does not work beacuase the...
2
by: Paul | last post by:
Hi this is related to a previous post, hopefully just a bit clearer description o the problem. I have a parent form that opens a new form (child form) while still leaving the parent form open....
7
by: Jaggu | last post by:
Hi , I need to close main window, once the child window succesfully opens else main window to remain. In my case when I close the main window immediately after the "window.open()" as mentioned...
1
by: michal.podlewski | last post by:
Hi All, I have a problem with a simple (as I thought till now) thing: I want to make a link in a child-window which would change site in the parent-window and along with closing child window. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.