Confirm Close Of Foundation Reveal Modal

Developer
Size
1,818 Kb
Views
10,120

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 Previews

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">&#215;</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(); };
});
Confirm Close Of Foundation Reveal Modal - Script Codes
Confirm Close Of Foundation Reveal Modal - Script Codes
Home Page Home
Developer Wing-Hou Chan
Username winghouchan
Uploaded December 06, 2022
Rating 3
Size 1,818 Kb
Views 10,120
Do you need developer help for Confirm Close Of Foundation Reveal Modal?

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!

Wing-Hou Chan (winghouchan) Script Codes
Create amazing video scripts with AI!

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!