I am trying to open a window (or new tab) (page B) via a button on page A. On page B, the user needs to complete a form and then rederect to page A. But I can't catch any event on page B from page A. How do I know when the user has submitted or closed page B?
My English is pretty bad, if you can't understand what I want to say, try the 'Login with Facebook' function of Pinterest.com. That's exactly what I need.Thanks you.
<a href="login.php" target="_blank">Open login page!</a>
And page B:
<form id="somelink" method="post" action="" />
<input type="text" name="asd">
<button>Submit</button>
</form>
Sorry for not adding my code sooner, I think it's quite simple and not really necessary because it can make people misunderstand me.
I really don't know how to put it this way, this is the first time I need it. The best way to visualize is to go to Pinterest's 'Login with Facebook'.