Pass target property to window.open