I know this question looks like previous questions, but it is slightly different.
I want to write a function in my javascript like
this.imagePopup = function() {
window.open("images/index.php","imageSelect");
//some code I don't know....
return imgUrl;
};
What code do I need to have the url of the selected image from the popup set in the variable imgUrl without setting the value in a text-input-field?
You can write a javascript handler in the popup to call a method in the opener. For instance a handler method as follows can help you:
Where selectImageInPopup is a global variable in the opener window.