<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>athro</author_name>
  <author_url>https://blog.hatena.ne.jp/athro/</author_url>
  <blog_title>JavaScript（演習プロンプト）</blog_title>
  <blog_url>https://chds.hatenablog.com/</blog_url>
  <categories>
    <anon>★ダイアログボックス</anon>
    <anon>★AI</anon>
  </categories>
  <description>【008】ダイアログに入力した値を表示 プロンプト例 JavaScriptのprompt()について解説して 「window.prompt()」 は、ユーザーにテキストを入力するように促すダイアログをオプションのメッセージと共に表示し、ユーザーがテキストを送信するかダイアログをキャンセルするまで待機するようにブラウザーに指示します 一般的には「window.」は、省略されます 🧩 prompt() とは？ prompt(message, default) 引数 説明 message ダイアログに表示するメッセージ default 入力欄に最初から表示される初期値（省略可） 戻り値 入力された文…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchds.hatenablog.com%2Fentry%2F2025%2F03%2F06%2F%25E3%2580%2590006%25E3%2580%2591&quot; title=&quot;【008】ダイアログに入力した値を表示 - JavaScript（演習プロンプト）&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/athro/20260227/20260227085321.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-01-08 00:00:00</published>
  <title>【008】ダイアログに入力した値を表示</title>
  <type>rich</type>
  <url>https://chds.hatenablog.com/entry/2025/03/06/%E3%80%90006%E3%80%91</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
