title: Call JavaScript of parent window from child window
body: <p>I have a calendar and when I click on a <code>&lt;td&gt;</code>, a pop-up window appears so you can create your evenement for the date you selected. I want to add a feature.</p>
  
  <p>When the user finishes creating the event, I want to send a JavaScript request to the parent page so I can refresh the calendar using AJAX. Basically, I want to call a function from the child, but the function is on the parent page.</p>
  
  <p>On Google, I only found a script that can refresh the parent window – nothing about a “parent callback”. ☹ Is it even possible?</p>
  
  <p>P.S. The answer can be pure JS or jQuery, it doesn’t matter. I’ll keep looking in the meanwhile.</p>