I have a php page where a date value is POSTed back to. From this php script, I want to forward that value to a javascript window. Can this be done?
views:
25answers:
2Sorry, I suppose I should have said that I am javascript impaired. I have **no idea** how to do this. Can you tell me what I need or what this is called so I can search for what I need?
2009-09-08 21:34:35
A:
The opened window should have access to the parent window through window.opener
from there you can access your parent document.
Try something like this in your popup window:
alert(window.opener.document.getElementById('mydate').innerHTML);
gnarf
2009-09-08 21:35:03