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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

javascript child window

Reply to Message Icon

Name: osaru
Date: April 18, 2005 at 19:34:12 Pacific
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' ?



Sponsored Link
Ads by Google

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

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: javascript child window

Javascript- new window in center www.computing.net/answers/webdevel/javascript-new-window-in-center/1517.html

Run JS func. in Parent from Child www.computing.net/answers/webdevel/run-js-func-in-parent-from-child/1922.html

global vars for javascript - ? www.computing.net/answers/webdevel/global-vars-for-javascript-/2315.html