Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8892605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:02:43+00:00 2026-06-14T23:02:43+00:00

I have a button which opens up a child window with a list of

  • 0

I have a button which opens up a child window with a list of Images which the user can click which sends values in parameters to a function where it put the parameters in an array value to variable that has been created in the parent window and then closes the child window. The current code I have works in Chrome and Firefox but doesn’t work in IE for some reason of which I do not have knowledge to know! I would preferably want it to work in up to IE 7 if that’s possible, although at the current moment it doesn’t even work in IE 9.

Parent Window Code:

var edge;

function getEdgeProfile(){
    myEdge = window.open('edge.html','','top=50,left=50,width=400,height=400');
}

Child Window Code:

<head>
<script>

function selectEdge(name, price, type){
    opener.edge = [name, price, type];
    window.close();
}

</script>
</head>
<body>

<img src="1.png" width="100px" height="100px" onClick='selectEdge("Square Edge 2mm ARRIS", 30.5, 1)'>
<img src="2.png" width="100px" height="100px" onClick='selectEdge("4 x 4 mm SINGLE BEVEL", 38.56, 1)'>
<img src="3.png" width="100px" height="100px" onClick='selectEdge("4 x 4 mm DOUBLE BEVEL", 46.49, 1)'>
<img src="4.png" width="100px" height="100px" onClick='selectEdge("V JOINT WITH SINGLE PENCIL", 38.56, 2)'>

</body>

I would add a JSFiddle but it opens a separate page so I can’t ~
Any help appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:02:45+00:00Added an answer on June 14, 2026 at 11:02 pm

    When you close the popup, the data assigned by the popup is lost. (In IE)

    I would suggest calling a function to the opener, from the popup, with the data as parameters. the function then sets (copies) the data to variables in the opener.
    So, this should work:
    (Not yet tested)

    Child window:

    function selectEdge(name, price, type){
        opener.setEdge(name, price, type);
        window.close();
    }
    

    Parent Window:

    function setEdge(name, price, type){
        edge = [name, price, type];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a button which opens a context menu with a list of various
I have a div which opens when I click a menu button, I am
I have two buttons, which the user can click and will open a FileDiagloag
I have a button which creates form elements on click . My addelement function
I have a button which opens a popup window and lets me to choose
I have developed a program in PHP which opens IE on a button click.
I have button which post values of form to url but during post i
I have a button which on Click loads another activity, but before it loads
I have a button which is in update panel. When I click on button
I have app which has actionbar containing 1) up button which opens side bar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.