Web Analytics Made Easy -
StatCounter Switching Window Control - CodingForum

Announcement

Collapse
No announcement yet.

Switching Window Control

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Switching Window Control

    A page has a link which when clicked creates a pop up window having two buttons: Continue and Cancel.

    When the operator selects continue, I want to direct them to a URL which is displayed in the page that created the pop up window. I do not wish to use the confirm function to do this.

    Can anyone help ?

  • #2
    //main window:

    <a href="newWindow.html" target="popup" onclick="window.open('newWindow.html'); return false;">click click</a>

    //popup window (newWindow.html)
    <form>
    <input type="input" value="continue" onclick="window.opener.location='someotherpage.html'; self.close();">
    <input type="input" value="cancel" onclick="self.close();">
    </form>
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

    Comment

    Working...
    X