/    Sign up×
Community /Pin to ProfileBookmark

How to let different windows talk to each other?

I have a page having
– a text field
– a link opening a pop up page.

On that pop up page, I want it so that when user clicks on it, the original web page’s text field is valued with the link anchor text.

Can someone guide me how to do this?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Logic_AliMay 01.2008 — I have a page having

- a text field

- a link opening a pop up page.

On that pop up page, I want it so that when user clicks on it, the original web page's text field is valued with the link anchor text.

Can someone guide me how to do this?[/quote]

If the form in the parent document is named 'f1', and its text field is named 't1':<a href='#' onclick="opener.document.forms.f1.t1.value=this.text; return false">I was clicked</a>
Copy linkTweet thisAlerts:
@wll6568authorMay 01.2008 — Thanks!
×

Success!

Help @wll6568 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 5.26,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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