This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes returning value from popup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "returning value from popup" Watch "returning value from popup" New topic

returning value from popup

Nidhi Singhal
Ranch Hand

Joined: Sep 19, 2004
Posts: 89

Hi all,

I want to return a value from the popup window back to a text box in my servlet. I am using window.opener.forms[0].txtbox.value = somevalue
But it is giving the error object not found. I have a form in my popup window as well in my servlet. Please help me out...

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
try doing this:

window.opener.document.forms[0].txtbox.value = somevalue

I agree. Here's the link:
subject: returning value from popup
Similar Threads
popup window
how to get value from popup window
getting stored values from form
Pop up problem in IE8
Close main window from popup window