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

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?


Thanks.
b_rajathilagamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

devicCommented:
var mypopup=window.open("mypopup")

and then:

var myfielld = mypopup.document.formName.fieldName.value
0
GwynforWebCommented:
Here is an exmple, add this to the main  page

window.open('analyser.htm','','')

where analyser.htm is

<head>
<script>
function ShowValues(field){
 str=''
 for(i=0;i<opener.document.getElementsByTagName('input').length;i++){
  if (opener.document.getElementsByTagName('input')[i].type==field) {
    str+="name="+opener.document.getElementsByTagName('input')[i].name
    str+=" value="+opener.document.getElementsByTagName('input')[i].value+'<br>'
 }
}
document.body.innerHTML+=field+'<br>'+str+'<p>'

}
</script>
</head>

<body>
<input type="button" onclick="ShowValues('text')" value="text">
<input type="button" onclick="ShowValues('button')" value="button">
<\body)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GwynforWebCommented:
rereading this I am not sure I understand exactly what you want however the above may help.
0
b_rajathilagamAuthor Commented:

The answer is exactly full-filled my requirements.


Thanks to all supporters...

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.