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 |
Using Foundation Topbar and Offcanvas Together | 2,537 Kb |
Using a Range Slider Inside a Reveal Modal | 1,858 Kb |
Custom Close ZURB Foundation Reveal Modal With Image | 2,114 Kb |
Opening Reveal Modal On Document Ready | 1,787 Kb |
Fixed Width Element in Responsive Design | 2,422 Kb |
Source Ordering Columns and Mobile-First | 1,862 Kb |
Confirm Close Of Foundation Reveal Modal | 1,818 Kb |
Foundation Dropdowns Demo | 1,820 Kb |
Custom Close Foundation Reveal Modal | 2,036 Kb |
Full Screen Orbit With Background Image | 2,102 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 |
Barber Shop | Bhlaird | 6,270 Kb |
A Pen by Manoz | Manoz | 2,424 Kb |
Sequence.js - Sliding Horizontal Parallax | Maheshc | 4,537 Kb |
Simple Accordion | Wearebold | 3,683 Kb |
Rows with image hover effect | Amit-webdesigner | 12,875 Kb |
Simple blog concept | Drew_mc | 2,666 Kb |
Price table | Serluk | 5,928 Kb |
Material design - button rainbow circle | Kunukn | 3,652 Kb |
Bloomberg Style Link Hover | Gil-- | 1,609 Kb |
Beautiful canvas stars | Matths | 2,399 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!