I press button after that appears div in which shows “loading” and loads iframe.
So, showing div I can do via jQuery, but how to load iframe after event?
I press button after that appears div in which shows loading and loads iframe.
Share
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.
Set the
srcattribute of the iframe the moment you want it to start loading (set it to""by default):You can also handle events for when the iframe finishes loading: