473,249 Members | 1,408 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,249 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 1747
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...

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.