Get started with dont-go CDN

MIT licensed

The dont go library prevents form submission until validation conditions are met.

Tags:
  • library
  • umd
  • es6
  • title
  • favicon
  • babel
  • universal
  • eslint

Stable version

Copied!

How to start using dont-go CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with dont-go CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/dont-go/1.1.1/dont-go.umd.js"></script>
</head>
<body>
    <button id="go-button">Go</button>
    <script>
        const goButton = document.getElementById('go-button');
        goButton.addEventListener('click', () => {
            DontGo.go(() => {
                alert('You tried to leave!');
            });
        });
    </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions