title tag update
タイトルタグが「タイトル変更」に変わります。
<form action="/sample/demo-title.html" method="POST" hx-post="/sample/demo-title.html" hx-trigger="submit" hx-target="#result-url" hx-swap="innerHTML"> <input type="submit" name="submit" value="demo"> </form> <div id="result-url" class="demo">このコンテンツが変わります</div>
このコンテンツが変わります
<h3>demo : title tag update</h3> <p>This file was loaded via Ajax using htmx technology. This file was loaded via Ajax using htmx technology. This file was loaded via Ajax using htmx technology.</p> <title>タイトル変更</title>