Tyler Gannon
Tyler Gannon

Reputation: 1012

Is it possible for an iframe to load twice

I'm loading once-viewable video players into iframes and encountering a spurious problem in which we occasionally get errors from the video provider, saying the link has already been used.

I am still trying to completely prove to myself that I'm not accidentally deleting and reinserting the iframe, but meanwhile I need to ask the community:

Is there any circumstance under which the an iframe might reload its src and if so, what event should I be listening for, in order to detect this?

thank you!

Upvotes: 0

Views: 480

Answers (1)

user
user

Reputation: 1070

According to this answer,
You can use iframe.contentWindow.location.reload(); to reload the iframe.

Upvotes: 1

Related Questions