PDA

View Full Version : Altering original page from popup.



mhodgson
04-18-2008, 07:23 AM
I have a page (A) from which the user can link to a new page(B) showing selected data.

I have included a popup so that when the link is clicked the popup gives options of what to show on the page e.g. Tables or graphs or (tables and graphs).
Works fine up to this point.

When the next button is clicked, after making a choice, I want the original window(A) to show the new page(B), not the popup or a new window as if happening at the momment.

Any ideas?

Thanks

Nile
04-18-2008, 12:57 PM
I get it, but I'd need to see the source, but just from guessing:


var page = confirm("If you'd like to go to Page(B) press Ok, otherwise press cancel");
if(page){ //if ok is clicked, also known as TRUE
window.location='page(b).html'; //page(B)
} else { //if cancel is clicked, also known as FALSE
window.location='page(a).html //page(A)
} //end