Replace url from youtube to embed code - Error: Permission denied to access property 'toString'

后端 未结 5 654
悲&欢浪女
悲&欢浪女 2020-12-02 12:56

I have this code and this error in FireBug:

Error: Permission denied to access property \'toString\'

How can i fix this error?

5条回答
  •  醉话见心
    2020-12-02 13:36

    Something is likely wrong with your Iframe url constructor. The error is being thrown in a youtube script that loads in the Iframe. The same error gets thrown with a harcoded html Iframe that isn't dynamically added with your script

    
    

    HTML version only demo http://jsfiddle.net/Lgt5f/

    Double check the url isn't missing a parameter , otherwise I would check youtube support resources

提交回复
热议问题