I have openned a new window from my current page (click on a button).
$(document).on("click","buttonInParentPage", function ()