I want to create a popup that will have a defined size like the BBC did. As you can see, when you click “Listen Live”, they open a popup player, but I didn’t understand how they did that.
Any chance for explanation?
Sorry, newbie in JavaScript
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try using this function:
I added the logic to resize the window because of a bug in IE9. Depending on what browser you’re using, you may not need that bit.