/    Sign up×
Community /Pin to ProfileBookmark

How to update a textbox value from another window

Hi to all!

I’m haveing a big problem regarding updateing dynamicaly
o textbox value.

I have a page that contains 3 frames. One of them is called “main”.
In this frame I load a page that dispays one textbox and one button.
When I press the button I open using JavaScript a new window in witch
I have 2 links. When I press one link I want to dynamicaly update the value
of the textbox from the “main” frame.

The problem is that I do not know how to refer to the first window because
it was not created using JavaScript code.

If you know how to do this…please healp me because I can’t find an answer
anywere and I’m desperate.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 03.2004 — In new window:

<a href="#" onclick="opener.document.formName.inputName.value='some value';">some value to main</a>
Copy linkTweet thisAlerts:
@cinicauthorNov 03.2004 — Thank you very much....it works great ....thanks.
×

Success!

Help @cinic 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 6.1,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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