How to create a popup when running oauth?

I would like to do what lifestream and other sites did with oauth authentication using a popup. They open a pop-up window that somehow was not blocked by the pop-up blocker and did not spoil their site. Then, allowing access to oauth, he says that he redirects back to the original site and kills the popup and returns the site to its normal color. How will I do something like this? If I published anything, I would not be all right, because all these accounts are still fictitious.

enter image description here

enter image description here

enter image description here

+6
javascript facebook oauth twitter popup
source share
2 answers

The fact is that this is not a popup. This is what is commonly called a lightbox. Js script like fancybox, lightbox and many others. Basically, you can open an iframe in a div with an absolute position and high z-index, and then overlay it below.

-nine
source share

In javascript, the window.open () function will do this for you. Using the api, you can set its location and get data from the events occurring in it.

Pop-up blockers will not block this pop-up if it is created from a function that runs when the user clicks a button. Pop-up blockers only block windows if no user has been entered to create it.

+15
source share

All Articles