sayedsohail Posted July 31, 2007 Share Posted July 31, 2007 Hi everyone, I have got multiple div's inside my parent window. and from my popup i wish to update one of the parent window div's. any suggestion is greatly appreciated. Thanks Link to comment https://forums.phpfreaks.com/topic/62637-solved-how-to-update-php-parent-from-popup-window/ Share on other sites More sharing options...
jitesh Posted July 31, 2007 Share Posted July 31, 2007 Give "id" to <div> in parent window. From child window (popup window) you can access the div of parent window by window.opener.document.getElementById('div_id_of_parent_window') Link to comment https://forums.phpfreaks.com/topic/62637-solved-how-to-update-php-parent-from-popup-window/#findComment-311772 Share on other sites More sharing options...
sayedsohail Posted July 31, 2007 Author Share Posted July 31, 2007 thanks for the help, now i am able to capture the name of the element, is there any way i can perform the onclick event of an element in parent window. window.opener.document.getElementById('div_id_of_parent_window') Any help? Link to comment https://forums.phpfreaks.com/topic/62637-solved-how-to-update-php-parent-from-popup-window/#findComment-311778 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.