显然,在Internet Explorer下,调用window.open
是无效的。我的网站上的Javascript代码没有运行,我认为这是由于该错误引起的。
它告诉我出错的那一行是对window.open的调用,显然有一个参数是无效的。
$('.objeto').click(
function() {
var center = 'height=380,width=900,top='+((screen.width - 900)/2)+',left='+((screen.height - 380)/2);
var address = $(this).attr('id');
window.open (address,'Ver articulo', config=center);
}
);
该网站在Google Chrome和Firefox下均可以正常运行。