[Webinar] Streamline your web hosting managementRegister Today


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
  • 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

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…
Suggested Courses

590 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