
Invoke a Parent Window Function from Another Window in JavaScript
Sometimes, you need to call a JavaScript function that’s in a parent window from a child window. For example, suppose you wanted to update a field in the parent window when a user enters or selects some value in a child window. You can achieve this using the window DOM