Skip to content

How to get htmx to do request with target _blank #1793

Answered by andryyy
jsantari asked this question in Q&A
Discussion options

You must be logged in to vote

Wouldn’t it be best to use a normal <a/> here? The advantages of swapping do not apply.

A way to archive this anyway could be using the beforeRequest event and call window.open(url, "_blank").

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jsantari
Comment options

Answer selected by jsantari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants