Coder Social home page Coder Social logo

dunglas / jquery.confirmexit Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 2.0 164 KB

jQuery confirm before exit plugin

Home Page: http://dunglas.fr/2012/11/jquery-confirmexit-ou-comment-ne-plus-perdre-les-donnees-dun-formulaire-complete/

License: MIT License

JavaScript 100.00%

jquery.confirmexit's Introduction

jQuery confirmExit Plugin

This jQuery plugin displays a modal dialog with a message asking the user to confirm if he wants to quit a webpage with unsaved changes.

All form's controls are supported including HTML5 types. Submitting the form will not display the confirmation dialog. The displayed message is configurable.

Internally, this plugin use the onbeforeunload event.

Browser Compatibility: IE 6.0+, FF 10+, Safari 5.0+, Opera, Chrome

Screenshot

Usage

$("#the-form").confirmExit("Your message");
  • the-form is the form ID (works with any method to grab your form)
  • Your message is the message that will be displayed before the page exit

Credits

This little plugin has been written by KΓ©vin Dunglas.

jquery.confirmexit's People

Contributors

dunglas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jquery.confirmexit's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.