Computing.Net > Forums > Web Development > javascript child window

javascript child window

Reply to Message Icon

Original Message
Name: osaru
Date: April 18, 2005 at 19:34:12 Pacific
Subject: javascript child window
OS: windows
CPU/Ram: 1g
Comment:

I know that I can access form object in Javascript by doing:
onClick="document.myForm.myText.value='it works'"
However when I do this from a child windows generated from a parent window, it doesn't work at all. I have to do it following way:
onClick="this.value='it works'"
Why I can only use 'this' ?


Report Offensive Message For Removal


Response Number 1
Name: Michael J (by mjdamato)
Date: April 19, 2005 at 15:16:20 Pacific
Reply: (edit)

I see that you haven't received any responses. Could be that your request is not very clear.

Are you trying to access a form field in a child window from the parent, in the parent window from a child, or in the child window from the child?

Michael J


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: javascript child window

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge