Answer the question
In order to leave comments, you need to log in
How to properly make window.open so that it is not blocked in browsers?
If you call the method
var params = (
'width=' + width +
',height=' + height +
',left=' + left +
',top=' + top +
',scrollbars=no',
'_blank'
);
window.open(url, 'popup', params);
Answer the question
In order to leave comments, you need to log in
It may be that:
var params = ('width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',scrollbars=no', '_blank');
//Запятая перед блэнком выступает в роли оператора. Иными словами:
//var params = '_blank';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question