/    Sign up×
Community /Pin to ProfileBookmark

return value from pop-up window

What i am aiming to do is for the user to click a link on the main web page (window A), which will open a small pop-up window (window ?. Window B will contain thumbnails of images, with radio option buttons, and a button at the bottom, that will close the pop-up window (win ? and return the selected image to window A, which i can then insert into a textarea as an image url.

This is similar to forums where users click on a pop-up full of emoticons, and the chosen icon is inserted into the textarea.

phew.

Anyone have any pointers on this?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@jmirickhaiNov 04.2004 — You can access the main window from the popup through its opener property.

http://www.webreference.com/js/tutorial1/opener.html
×

Success!

Help @moondance spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...