Click to See Complete Forum and Search --> : refresh me


bobby_dummy_022
12-10-2003, 06:04 PM
Is it possible from browser window 'A' to open a new window 'B', which has a button that refreshes window 'A'?

pyro
12-10-2003, 06:07 PM
Try window.opener.location.reload(true)

bobby_dummy_022
12-10-2003, 06:10 PM
so if I run that from window 'B', it will reload the page that is in window 'A' .. not 'B'?

bobby_dummy_022
12-10-2003, 06:21 PM
let me elaborate incase my explaination was misunderstanding. I will break it into points

1) I have a page a.php which is loaded in windowA.

2) a.php contains a link which opens a new window windowB, which loads b.php.

3) b.php contains a form action"c.php", with a button which submits the form.

4) c.php then instructs windowA to refresh (or in other words - instructs windowA to redirect to 'somepage.php', where somepage = the current page)

is this possible? - in particular point 4

russell
12-10-2003, 06:47 PM
Sure. c.php has something like this:

<body onload="window.opener.location.href='thankYou.htm'">

or like this

<body onload="window.opener.location.reload()'">