Skip to content

u1ui/confirm.attr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

[u1-confirm] - attribute

Confirm before action

Features

  • Interupts form submit and requestSubmit
  • Interupts click on button
  • Uses native Dialog-Element (unstyled)
  • Has a translated default confirm text
  • Lightweight

Usage

<form u1-confirm="Save name?" target=_blank>
    <label>Name: <input name=name></label>
    <button>save</button>
</form>

Install

<script src="https://cdn.jsdelivr.net/gh/u1ui/confirm.attr@x.x.x/confirm.min.js" type=module></script>

Demos

minimal.html
test.html

About

  • MIT License, Copyright (c) 2022 (like all repositories in this organization)
  • Suggestions, ideas, finding bugs and making pull requests make us very happy. ♥