I have a pop up window that contains some selections. Once the user selects options, the selected options need to be displayed in the main window. The main window doesn’t need to be refreshed when options are selected from the pop up window. I’m using javascript for this, but I cannot figure out how to access the checkbox item of the pop up window from the main window.
Example:
<input type="checkbox" name="vehicle[]" value="Bike" />
<input type="checkbox" name="vehicle[]" value="car" />
var chbox = document.getElementById("vehicle[]").value;
But this doesn’t work.
Depends on how you open the popup window..
If you open it with
window.openthen you can store the returned value from that command to a variable and use that to communicate with the window..for example