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

Posted on 2004-10-29
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
    LVL 25

    Expert Comment


    and then:

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

    Accepted Solution

    Here is an exmple, add this to the main  page'analyser.htm','','')

    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

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

    Author Comment


    The answer is exactly full-filled my requirements.

    Thanks to all supporters...


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Cisco Complete Network Certification Training

    If you’re an IT engineer or technician, it's time you take your career to the next level. This elite training bundle is brimming with all of the information you need to learn to sit for Cisco CNNA, CCNP, and CCENT certification exams.

    This article shows how to read a single webpage's HTML into a string variable, and it also shows how to automate a sequence so you can read and process a list of webpages.  I was tasked with reading and parsing a series of webpages to collect some s…
    In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
    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…

    875 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now