Я пытаюсь открыть новое окно из javascript, но в HTML ничего не вставляется:
var callScriptText = $('#callScriptText').html();
var url = '/Action/CallScript/?callScript=';
// Open the current call script in a new window
var openWindow = window.open(url, 'callScriptPopup', 'width = 500, height = 500');
$(openWindow).html(callScriptText);
Кто-нибудь знает, почему?
var codeContents = $("#contentsfornewWindow").html()
var win = window.open('', 'title', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=1000,height=1000,left=200,top=70');
win.document.body.innerHTML = codeContents;
VS:
win.document.write(codeContents);
у меня есть уведомление, если существуют iframes как youtubes видео, win.document.write
загрузки iframes, где как document.body.innerHTML
не делает!