By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,340 Members | 1,625 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,340 IT Pros & Developers. It's quick & easy.

Parent-child relation on window

P: 12
Yo Yo

i have 2 text field and a buttons which is placed close to the text field.
my requirement is that, on clickin a button, a new window opens and i am making a selection in the child window which is getting reflected in the 1st text field. i need to load in some data in the 2nd text filed also.
howz it possible. can the geeks help me out with a solution....

Jul 7 '06 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 1,754
Hi there,

well.. why not use cookies to store and retrieve the value in the second text field later on? tot abt it? good luck my fren.. :)
Jul 7 '06 #2

P: 1
<script language="Javascript">
function SendValue()

window.opener.document.forms["Form1"].elements["txtFieldID"].value = "<%= variable %>";



This will help you. by using Window.opener you can access parent elements.
Sep 7 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.