<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>saitoayumu</author_name>
  <author_url>https://blog.hatena.ne.jp/saitoayumu/</author_url>
  <blog_title>エキサイト TechBlog.</blog_title>
  <blog_url>https://tech.excite.co.jp/</blog_url>
  <categories>
    <anon>フロントエンド-HTMX</anon>
    <anon>フロントエンド</anon>
    <anon>フロントエンド-マークアップ</anon>
    <anon>デザイン-UX</anon>
  </categories>
  <description>こんにちは。エキサイトでデザイナーをしている齋藤です。 今回は、htmxでリクエスト発行前にwindow.confirmを実行して、確認ダイアログが承認された場合にのみリクエストする方法をご紹介します。 なお、本稿の内容は v2.0.4（2025年6月16日時点の最新版）のhtmxを前提としています。 htmxとは 実現したいこと hx-confirm属性でwindow.confirmが実装できる まとめ 参考文献 htmxとは htmxは、HTMLタグに専用の属性を記述することで、複雑なJSを記述せずにAJAXリクエストの発行を可能にするライブラリです。 htmx.org マークアップの延長…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2025%2F06%2F20%2F111511&quot; title=&quot;htmxでリクエスト発行前にwindow.confirmを実行する方法 - エキサイト TechBlog.&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/s/saitoayumu/20250616/20250616091428.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-06-20 11:15:11</published>
  <title>htmxでリクエスト発行前にwindow.confirmを実行する方法</title>
  <type>rich</type>
  <url>https://tech.excite.co.jp/entry/2025/06/20/111511</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
