Firefox + Firebugを使用して、エラーメッセージを停止しようとしています...
Error: Permission denied to access property 'toString'
そしてChromeで言う。
Unsafe JavaScript attempt to access frame with URL http://jsfiddle.net/PEaUD/ from frame with URL http://www.youtube.com/embed/zTFBJgnNgU4?rel=0&showinfo=0&autohide=1&controls=0. Domains, protocols and ports must match.
私はjQueryを次のように使用しています...
$("body").html('<iframe width="500" height="500" src="http://www.youtube.com/embed/zTFBJgnNgU4?rel=0&showinfo=0&autohide=1&controls=0" frameborder="0" allowfullscreen></iframe>');
デモ: http: //jsfiddle.net/PEaUD/
何が問題なの?
... https://stackoverflow.com/a/13101119/622813?
PS:Firefoxでこのエラーが発生したとき、YouTubeビデオを再生できず、play-btnをクリックしたときにURLバーに何も入力/コピー/パス(キーボードで)できないため、質問します。