wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes popup windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "popup windows" Watch "popup windows" New topic

popup windows


Joined: May 31, 2004
Posts: 9
i have a jsp page which contains a textbox and a button. when i press on the
button i must me show a popup window into the same page. the popup window
populate a combo box and its contains a values and select one value, it shoud be
displays on the textbox. how?

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Welcome to the JavaRanch! We don't have many rules around the 'Ranch, but we do require your display name to follow the JavaRanch Naming Policy.
You can change it here.

You can open a window with the window.open() method;

from the child window, you can talk to the parent
window.opener.document.FormName.ElementName.value = "blah";

That is the basic idea....

Don't get me started about those stupid light bulbs.
subject: popup windows
Similar Threads
Popup window from action class
put javascript method in body tag and its not returning anything
Popup form, parent form
history.back() not retaining changed values in previous page after window.open() call
how to close child window