By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,844 Members | 1,859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,844 IT Pros & Developers. It's quick & easy.

Main > Popup > Popup > Close popup AND new URL in main?

P: n/a
Hi
From my main window I open a series of popup (one close - next opens)
in a mockup for a registration proces.

From the last popup, I want to click a buttom, so the popup closes and
the URL in the original main window changes and the window get focus.

Uses
<script language="JavaScript"><!--
name = 'mainwindow';
//--></script>

to target the main window - but I havn't succeeded in closing the
popup.

Any suggestions?
Jul 23 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Jens Peter Hansen wrote:
Hi
From my main window I open a series of popup (one close - next opens)
in a mockup for a registration proces.

From the last popup, I want to click a buttom, so the popup closes and
the URL in the original main window changes and the window get focus.

Uses
<script language="JavaScript"><!--
name = 'mainwindow';
//--></script>

to target the main window - but I havn't succeeded in closing the
popup.


self.close();

in the popup window.

--
andy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #2

P: n/a
Randy Webb <hi************@aol.com> wrote in message news:<Md********************@comcast.com>...
From the last popup, I want to click a buttom, so the popup closes and
the URL in the original main window changes and the window get focus.
but I havn't succeeded in closing the
popup.


self.close();

in the popup window.


Yes - with self.close() I can close the popup - but I can't figure out
how to change the content in the main window at the same time.

Please have a look at a small example I have placed at
http://www.purhusnet.dk/popupsequence/ - in this example I do change
content in main window, but the popup retains focus.

regards jph
Jul 23 '05 #3

P: n/a
Jens Peter Hansen wrote:
Randy Webb <hi************@aol.com> wrote in message news:<Md********************@comcast.com>...
From the last popup, I want to click a buttom, so the popup closes and
the URL in the original main window changes and the window get focus.
but I havn't succeeded in closing the
popup.


self.close();

in the popup window.

Yes - with self.close() I can close the popup - but I can't figure out
how to change the content in the main window at the same time.

Please have a look at a small example I have placed at
http://www.purhusnet.dk/popupsequence/ - in this example I do change
content in main window, but the popup retains focus.

regards jph


<A HREF="./red.html" TARGET="hovedvindue"
oncklick="setTimeout(closeIt,1000)">- red content</A>

function closeIt(){
self.close();
}

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #4

P: n/a

Thanks Randy - that works as can be seen on
http:/www.purhusnet.dk/popupsequence (har to correct a typing error in
oncklick)

regards jph
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #5

P: n/a
Jens Peter Hansen wrote:
Thanks Randy - that works as can be seen on
http:/www.purhusnet.dk/popupsequence (har to correct a typing error in
oncklick)


When I go through it now, in Mozilla, I get two windows at the end,
instead of one......
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #6

P: n/a

Correct - lucky me, I'm only producing a mockup so for a start it is OK
that it's only working in IE. Smarter people than me must solve the
Mozilla/Netscape issue later :-)

regards jph
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #7

P: n/a
Jens Peter Hansen wrote:
Correct - lucky me, I'm only producing a mockup so for a start it is OK
that it's only working in IE. Smarter people than me must solve the
Mozilla/Netscape issue later :-)


The reason it works in IE and not Mozilla is because IE lets you name an
already open window on the fly, Mozilla doesn't.

Also, you may want to read
<URL: http://www.jibbering.com/faq/#FAQ4_24 >

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/
Jul 23 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.