<script>
jsconst tab = window.open(); //tab.document.open(); // 書き込み開始 tab.document.write(htmlText); // 書き込み tab.document.write('<!--additional text-->'); // 追加で書き込むこともできる tab.document.close(); // 書き込み終了