0
votes

I am using youtube embed iframe for playing videos. If the src of the url does not contain valid URL on playing the video it throws "An error occured. Please try again later'. and there will be Learn More anchor tag. How do I disable that anchor tag using javascript?

1
I don't think this is possible...6dev6il6

1 Answers

0
votes

It's not possible with JavaScript, as you can not access an iFrame from a different domain.

If you want to be sneaky, you could overlay the iframe with a z-indexed transparent div stop the user clicking in the iframe.