Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


how to get child-window's field value from parent window?

Posted on 2004-10-29
Medium Priority
Last Modified: 2011-09-20
Hi ,

         My problem is, i am creating a online html editor, each tag having some set of attributes, so if the user press any button (html tag button) i wants to generate a new window for getting properties value of particular html tag. For each tag i wants to create a new window to get that tag's properties's value. The child window will have one submit or push button. Once the submit or push button get activate, i wants to get all the fields value inside the child window from parent window.

Can i get field's value which is on child window from parent window using childwindow referernce or any other way?

Question by:b_rajathilagam
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 25

Expert Comment

ID: 12449440
var mypopup=window.open("mypopup")

and then:

var myfielld = mypopup.document.formName.fieldName.value
LVL 31

Accepted Solution

GwynforWeb earned 2000 total points
ID: 12449510
Here is an exmple, add this to the main  page


where analyser.htm is

function ShowValues(field){
  if (opener.document.getElementsByTagName('input')[i].type==field) {
    str+=" value="+opener.document.getElementsByTagName('input')[i].value+'<br>'


<input type="button" onclick="ShowValues('text')" value="text">
<input type="button" onclick="ShowValues('button')" value="button">
LVL 31

Expert Comment

ID: 12449858
rereading this I am not sure I understand exactly what you want however the above may help.

Author Comment

ID: 12450204

The answer is exactly full-filled my requirements.

Thanks to all supporters...


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question