Thread: Simple JavaScript Code Issue

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2007
    Location
    Arizona
    Posts
    164
    I did write a function in 3a that created everything I needed in 3b. and I got all excited. Then I couldn't figure out how to get the buttons (confirm order and cancel) to work in that function. AND...the assignment said to create two html pages. So I got discouraged and started all over.

    I have been referencing the information on w3schools website for all the DOM properties and methods. I read and reviewed the opener property but couldn't figure out how to apply it. So, I kept on looking.

    Citizen, if you can' give a little more explanation that would be great.

    Thanks to you both,
    Cindy

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by clegs View Post
    Citizen, if you can' give a little more explanation that would be great.

    Thanks to you both,
    Cindy
    opener is just a reference to the window that opened that window.

    You use it like you would any other:

    Code:
    var pizza = opener.document.getElementById('pOrdered').value
    var phone = opener.document.getElementById('cPhone').value

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple C++ question. Error in code somewhere.
    By Paracropolis in forum C++ Programming
    Replies: 10
    Last Post: 02-06-2006, 08:59 AM
  2. << !! Posting Code? Read this First !! >>
    By kermi3 in forum Windows Programming
    Replies: 0
    Last Post: 10-14-2002, 01:29 PM
  3. << !! Posting Code? Read this First !! >>
    By kermi3 in forum Game Programming
    Replies: 0
    Last Post: 10-14-2002, 01:27 PM
  4. << !! Posting Code? Read this First !! >>
    By biosx in forum C++ Programming
    Replies: 1
    Last Post: 03-20-2002, 12:51 PM
  5. Simple Code, looking for input.
    By Alien_Freak in forum C Programming
    Replies: 3
    Last Post: 03-03-2002, 11:34 AM