Child to Parent window communtication

S

Sandfordc

I was curious one day and started to explore the whole idea of a
document opening a pop up and that pop up being able to send data, that
was input by the user, back to the parent. Does anyone have expirence
with this?

Best Regards,
Sandfordc
 
Z

zzzxtreme

try this



<html><body>
<script>var x = window.open();x.document.write('<html><body><input
type="text" id="txt"><input type="button"
onclick="opener.document.getElementById(\'x\').value=document.getElementById(\'txt\').value"></body></html>');
</script>
<input type="text" id="x">
</body></html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top