UI Dialog : Google Chrome problem with youtube
Problem is that youtube link reloads page on chrome and not on firefox?
Thanks.
var link = "http://www.youtube.com/watch?v=QU5DhngJfr8"
var object = '<object height="385" width="640">'
+ '<param value="'+link+'" name="movie">'
+ '<param value="true" name="allowFullScreen">'
+ '<param value="always" name="allowscriptaccess">'
+ '<embed height="385" width="640" allowfullscreen="f" allowscriptaccess="always" type="application/x-shockwave-flash" src="'+link+'">'
+ '</object>';
jQuery('<div>') .html(object)
.dialog({ closeOnEscape: false, autoOpen: true,
resizable:false,
title: 'test',
modal: true,
height:440,
width:675,
close:function(event){ jQuery(this).remove();
}
});