How do I create a popup window when doing oauth?

后端 未结 2 501
梦谈多话
梦谈多话 2021-02-06 07:42

I\'m would like to do what lifestream and other sites have done with oauth authentication by using a pop up window. They open a popup window which somehow wasn\'t blocked by th

相关标签:
2条回答
  • 2021-02-06 08:39

    The thing is, this is not a pop-up window. It's what usually called lightbox. A js script like fancybox, lightbox and many others. You basically can open an iframe in a div with a absolut position and high z-index, then put an overlay underneath.

    0 讨论(0)
  • 2021-02-06 08:42

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

    Popup blockers will not block this popup if it is created from a function that is executed when the user clicks a button. Popup blockers only block windows if there was no user input provided to create it.

    0 讨论(0)
提交回复
热议问题