Unsafe JavaScript attempt to access frame with URL from frame with URL youtube
best solution to use youtube API :
and add Div with ID "ytapiplayer"
- <code>
- <div style="overflow-x: scroll;">
- <div style="width: 1324px;">
- jQuery(document).ready(function() {
- var Vid = 'youtubeId';
- var params = { allowScriptAccess: "always" };
- var atts = { id: "myytplayer" };
- swfobject.embedSWF("http://www.youtube.com/v/" + Vid + "?enablejsapi=1&playerapiid=ytplayer&version=3",
- "ytapiplayer", "320", "315", "8", null, null, params, atts);
- });
- </div>
- </div>
- </code>