forcing parent window to reload

S

Sonnich

Hi all!

Probably simple - once one knows.

I have a window, which open using

<input type="button" class="box" name="main" value=" Add... "
onClick=window.open('add.asp')>

The window has some funtionality, then I have this, which still needs
to force a reload of the parent window.
Any ideas anyone?

<!-- *********** part which will close the window ************* -->
<html><body onLoad="window.close();">Settings updated.<p>
<input type="button" class="box" name="main" value="Close window"
onClick="window.close();">
<html></body>

BR
Sonnich
 
S

Sonnich

Sonnich said:
Hi all!

Probably simple - once one knows.

I have a window, which open using

<input type="button" class="box" name="main" value=" Add... "
onClick=window.open('add.asp')>

The window has some funtionality, then I have this, which still needs
to force a reload of the parent window.
Any ideas anyone?

<!-- *********** part which will close the window ************* -->
<html><body onLoad="window.close();">Settings updated.<p>
<input type="button" class="box" name="main" value="Close window"
onClick="window.close();">
<html></body>

I found this:
if (window.opener && !window.opener.closed)
window.opener.history.go(0);

This works, but the following does not - any idea why?

window.opener.reload();
window.opener.refresh();

BR
Sonnich
 
S

Sonnich

I found this:
if (window.opener && !window.opener.closed)
window.opener.history.go(0);

This works, but the following does not - any idea why?

window.opener.reload();
window.opener.refresh();

..... and :) I found that it works in one case, but another windows
days, that for freshing it needs to repost something... it is not
always there, but some times... anyone know why?

It does not happen when I change some checkboxes when working, but as
far as I get it at random...

BR
Sonnich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top