Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy 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
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    //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.


  •  

    Posting Permissions

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