HTML: Markup language
CSS: Styling language
JavaScript: Scripting language
Web APIs: Programming interfaces
All web technology
Learn web development
Discover our tools
Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
View in English Always switch to English
Document.close() メソッドは、 Document.open() で開かれた文書への書き込みを終了します。
Document.close()
Document.open()
close()
なし。
なし (undefined)。
undefined
// 書きこむ文書を開きます。 document.open(); // 文書の内容を書き込みます。 document.write("<p>たったひとつの内容。</p>"); // 文書を閉じます。 document.close();
Loading…