471,594 Members | 2,618 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,594 software developers and data experts.

window.opener.top.location.top.close ???


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 ...

--

find clausen
www.photopress.dk
Jul 20 '05 #1
2 8692
find clausen <> writes:
I have opened this fullscreen (framed) window from a
"top-page-setup-box"
Huh? It is a full screen window containing frames? Can you be more
specific? What is the "top-page-setup-box" and what does it do?
if (window.opener.top.location .......
Yes, what is this code used for?
How can I close it again from the same page, like:

window.opener.top.location.top.close(); that doesn't work ...


You don't want to close the *location* property of a window.

You seem to want to close the window that opened the current window?
That can be a problem, since you are generally only allowed to close
windows that were originally opened by Javascript.

My guess at what you are trying to do (and it is a *GUESS*) is
window.opener.top.close()

/L 'læser også dk.edb.internet.webdesign.clientside hvis dansk er bedre'
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
On 05 Oct 2003 13:40:26 +0200, Lasse Reichstein Nielsen
<lr*@hotpop.com> wrote:
find clausen <> writes:
My guess at what you are trying to do (and it is a *GUESS*) is
window.opener.top.close()
Good guess !
That did it.
It's a controlpanel on my website.
/L 'læser også dk.edb.internet.webdesign.clientside hvis dansk er bedre'


Ja, det ved jeg ;-)

Mange tak / Thanx a lot ...

--

find clausen
www.photopress.dk
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Scott | last post: by
5 posts views Thread by Carol Lyn | last post: by
19 posts views Thread by Darren | last post: by
5 posts views Thread by Hemanth | last post: by
11 posts views Thread by Dave | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

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.