Results 1 to 2 of 2

Thread: Altering original page from popup.

  1. #1
    Join Date
    Apr 2007
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Altering original page from popup.

    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

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I get it, but I'd need to see the source, but just from guessing:
    Code:
    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
    Jeremy | jfein.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •