简体   繁体   中英

Get Value from child window to parent window

In Child window i have a table. When i click on it i need to get those values in parent window. I am using HTML and javascript. I need this in javascript or jquery.

I think this sample is usefull

$(purchaseWin.document).ready(function () {
  $(purchaseWin.document).contents().find('#tdProduct').html('2');
});

You can make use of the window.opener property in javascript.

In child window, write an event handler to listen for clicks, which can then use the above property to communicate with its parent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM