Confirm Close Of Foundation Reveal Modal
How do I make an confirm close of foundation reveal modal?
On close, confirm if the user wishes to close the modal.. What is a confirm close of foundation reveal modal? How do you make a confirm close of foundation reveal modal? This script and codes were developed by Wing-Hou Chan on 06 December 2022, Tuesday.
Confirm Close Of Foundation Reveal Modal - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Confirm Close Of Foundation Reveal Modal</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel='stylesheet prefetch' href='https://cdn.foundation5.zurb.com/foundation.css'>
</head>
<body> <div id="myModal" class="reveal-modal" data-reveal> <h2>Awesome. I have it.</h2> <p class="lead">Your couch. It is mine.</p> <p>Im a cool paragraph that lives inside of an even cooler modal. Wins</p> <a class="close-reveal-modal">×</a>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdn.foundation5.zurb.com/foundation.js'></script> <script src="js/index.js"></script>
</body>
</html>
Confirm Close Of Foundation Reveal Modal - Script Codes JS Codes
$(document).foundation();
$(document).ready(function(){$('#myModal').foundation('reveal', 'open')});
$(document).on('close', '[data-reveal]', function (e) { var ok = confirm( 'Are you sure you want to close this?' ); if(!ok) { e.stopImmediatePropagation(); };
});
Developer | Wing-Hou Chan |
Username | winghouchan |
Uploaded | December 06, 2022 |
Rating | 3 |
Size | 1,818 Kb |
Views | 10,120 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Stop Page Jumping To Top When Sticky Topbar Menu Icon Is Clicked | 2,936 Kb |
Making Element Height Fill Remaining Document Space | 2,201 Kb |
Custom Close ZURB Foundation Reveal Modal With Image | 2,114 Kb |
Fixed Width Element in Responsive Design | 2,422 Kb |
Foundation Dropdowns Demo | 1,820 Kb |
Full Screen Orbit With Background Image | 2,102 Kb |
Mega Menu Experiment 2 | 2,465 Kb |
Opening Reveal Modal On Document Ready | 1,787 Kb |
Source Ordering Columns and Mobile-First | 1,862 Kb |
Offcanvas with Icon Bar | 2,171 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Resume | Rottingroom | 5,483 Kb |
Dribbble Inspired Registration Form | Lancebush | 2,358 Kb |
A Pen by Kevin | Kevinkenger | 2,642 Kb |
A Pen by Michael Parenteau | Michaelparenteau | 2,133 Kb |
Spinners using Font Icons | Keyamoon | 3,007 Kb |
Em Test | Rodesco | 1,784 Kb |
Nice textured background | Hans | 2,659 Kb |
3D-box | Parthviroja | 2,346 Kb |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 Kb |
Svg animation draw | SzymonDziewonski | 5,545 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!