Back (history.back()) after refresh

B

Bruno

Hi ...

I have a webpage popup (lets call it POPUP) which refreshes the opener
window (this one we call PARENT) when we close it, saying we want to
save data.

For this, we use

top.oWndOpener.refresh();

When we don't want to save the POPUP data, we just close the popup and
don't refresh the PARENT.

In the PARENT we have a "Back" link which executes a simple

history.back()

The problem is:
If we refresh parent, we need to go back 2 pages, because the refresh
method adds another page to the history. But we have no (easy) way of
knowing in the PARENT if it had been refreshed. With this, our users
are forced to click two times in the Back link.

Is there anyway of going back to the previous page, no matter how many
refreshes happened in the current one ?

Thanks!!!!!
Bruno
 
R

Randy Webb

Bruno said the following on 5/29/2006 6:45 AM:
Hi ...

I have a webpage popup (lets call it POPUP) which refreshes the opener
window (this one we call PARENT) when we close it, saying we want to
save data.

My apologies for you being stuck in 1999 with the use of popups.
For this, we use

top.oWndOpener.refresh();

When we don't want to save the POPUP data, we just close the popup and
don't refresh the PARENT.

In the PARENT we have a "Back" link which executes a simple

history.back()
The problem is:
If we refresh parent, we need to go back 2 pages, because the refresh
method adds another page to the history. But we have no (easy) way of
knowing in the PARENT if it had been refreshed. With this, our users
are forced to click two times in the Back link.

Is there anyway of going back to the previous page, no matter how many
refreshes happened in the current one ?

Yeah, don't use refresh, use either reload or replace.
 

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
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top