Answer the question
In order to leave comments, you need to log in
How to implement a popup window with a timer that closes after n seconds or when the like button is clicked?
Hello! Please tell me how to implement a popup window where the facebook widget will be, which will close after n seconds or after clicking on the like button?
Answer the question
In order to leave comments, you need to log in
1) the simplest option is setTimeout
2) The social network widget is embedded in the iframe. I doubt very much that facebook (in this case) will tell you that "like" is pressed. You can try using a selector to find the "like" button and hang on to its events. But, again, I'm not sure how this will all work with an iframe
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question