🌐
CodePen
codepen.io › marine-fraysse › pen › eYmBEvQ
Pop-up on Button Click
Button which brings up a pop-up overlay when clicked....
🌐
CodePen
codepen.io › ZlatinaNyagolova › pen › LZOgzZ
SImple Popup Div (on button and on link)
<button onclick="showPopup()" class="btnPopup thePopup">Open PopUp</button> <a class="linkStyle thePopup" onclick="javascript:showPopup()" href="#" return false;>Open PopUp</a> <div class="popup_container"> <div id="popup_content" ...
🌐
CodePen
codepen.io › Shaz3e › pen › jEZpJW
Responsive Popup with JavaScript
<h1 class="s3-center">Responsive ... </div> </div> <!-- Popup Button --> <input type="button" class="s3-btn" name="Open" onclick="popupOpen();" value="Click to Show Overlay"> !...
🌐
CodePen
codepen.io › si-hamada › pen › QGQOrB
PopUp for every Button
$(document).ready(function(){ $('.popUpBtn').on('click', function(){ $('#'+$(this).data('modal')).css('display','block'); }) $('span.close').on('click', function(){ $('.modal').css('display','none'); }) $(window).on('click', function(event){ if (jQuery.inArray( event.target, $('.modal') ) != "-1") { $('.modal').css('display','none'); } }) }) // Get the modal // var modal = document.getElementById('myModal'); // Get the button that opens the modal // var btn = document.getElementById("myBtn"); // Get the <span> element that closes the modal // var span = document.getElementsByClassName("close")
🌐
CodePen
codepen.io › Asadabbas › pen › pLMNGZ
Simple Popup [HTML + CSS + JS]
Using packages here is powered ... native JavaScript ESM usage. All packages are different, so refer to their docs for how they work. If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing. If active, Pens will autosave every 30 seconds after being saved once. If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to ...
🌐
CodePen
codepen.io › kaleem78 › pen › NJxjVJ
show and hide popup on click
Using packages here is powered ... native JavaScript ESM usage. All packages are different, so refer to their docs for how they work. If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing. If active, Pens will autosave every 30 seconds after being saved once. If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to ...
🌐
CodePen
codepen.io › asiburcodedrop › pen › PozrEby
Custom Popup Using Vanilla JavaScript
If active, Pens will autosave every 30 seconds after being saved once. If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update. If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting. ... Visit your global Editor Settings. ... <button id="clickBtn">Click Me To See PopUp</button> <div id="popup"> <div class="popup-container"> <div class="popup"> <div class="close-popup" id="closeBtn"><a href="#">X</a></div> <h2>Custom Popup</h2> <p> This is a custom popup.
🌐
CodePen
codepen.io › pairdocs › pen › JOpWPz
jQuery Pop-Up
Minimize JavaScript Editor · Fold All · Unfold All · //appends an "active" class to .popup and .popup-content when the "Open" button is clicked $(".open").on("click", function(){ $(".popup-overlay, .popup-content").addClass("active"); }); ...
🌐
CodePen
codepen.io › tag › simple popup
Pens tagged 'simple popup' on CodePen
CodePen doesn't work very well without JavaScript · We're all for progressive enhancement, but CodePen is a bit unique in that it's all about writing and showing front end code, including JavaScript. It's required to use most of the features of CodePen · Need to know how to enable it?
Find elsewhere
🌐
CodePen
codepen.io › xSobeKx › pen › wvBzoPb
Display a popup on click
When a user clicks a symbol, show a [`Popup`](/mapbox-gl-js/api/#popup) containing more information. The symbols are from the [Maki](https://labs.mapbo...
🌐
CodePen
codepen.io › jreaux62 › pen › wBxPoe
Ouvrir un Popup on clic sur un bouton (connexion form) - CSS jQuery
You can use the URL of any other Pen and it will include the JavaScript from that Pen.
🌐
CodePen
codepen.io › bluminethemes › pen › reEJZa
Magnific Popup - Open custom gallery on button click
<h3>Magnific Popup - Open custom gallery on button click</h3> <ul> <li> <a href="#gallery-1" class="btn-gallery">Gallery 1</a> </li> <li> <a href="#gallery-2" class="btn-gallery">Gallery 2</a> </li> <li> <a href="#gallery-3" class="btn-gallery">Gallery 3</a> </li> <li> <a href="#gallery-4" class="btn-gallery">Gallery 4</a> </li> </ul> <div id="gallery-1" class="hidden"> <a href="https://images.unsplash.com/photo-1462774603919-1d8087e62cad?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&s=0ebd884b4d6ac379f42146a2b26fbf2e">Image 1</a> <a href="https://images.unsplash.com/photo-1460499593944-39e14f96a8c6
🌐
CodePen
codepen.io › kaiak › pen › yLyqxOY
simple popup jquery
Minimize JavaScript Editor · Fold All · Unfold All · $("button").click(function() { $(".popup").fadeIn(500); }); $(".close").click(function() { $(".popup").fadeOut(500); }); ! 999px · Clear · Ctrl Ctrl Space Autocomplete · F Find · G ...
🌐
CodePen
codepen.io › epatr › pen › JXZbgr
Simple jQuery Popup
Minimize JavaScript Editor · Fold ... { // Open $('[data-popup-open]').on('click', function(e) { var targeted_popup_class = $(this).attr('data-popup-open'); $('[data-popup="' + targeted_popup_class + '"]').fadeIn(350); e.preventDefault(); }); // Close ...
🌐
CodePen
codepen.io › kiyara › pen › maeGKp
modal popup on click
this is a modal popup only one time click event play on click button and close window by close button, body and thanks-btn1 except overlay section...
🌐
SitePoint
sitepoint.com › javascript
Using a custom button to open a social share popup - JavaScript - SitePoint Forums | Web Development & Design Community
May 9, 2023 - I am using the following tutorial: Popup Share Modal with Social Icons using HTML, CSS and JavaScript Here is my example: Codepen I would like my custom button to open the popop (currently not working). I think it’s…
🌐
CodePen
codepen.io › kelvinangulo › pen › ybzqze
Open modal with jQuery on('click'
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting. ... Visit your global Editor Settings. ... <p> --- Instructions --- To load modal click the "Open Modal" button below --- ...
🌐
CodePen
codepen.io › khaag › pen › ZEwKPj
Modal Popup Window
If disabled, use the "Run" button to update. If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting. ... Visit your global Editor Settings. ... <div class="page-wrapper"> <a class="btn trigger" href="javascript:;">Click Me!</a> </div> <div class="modal-wrapper"> <div class="modal"> <div class="head"> <a class="btn-close trigger" href="javascript:;"></a> </div> <div class="content"> </div> </div> </div>
🌐
CodePen
codepen.io › sdns › pen › xbdOPw
Multiple Pop Up
Minimize JavaScript Editor · Fold All · Unfold All · $(".open_popup").click(function () { $(this).parent(".popup_main").children(".popup_body").addClass("popup_body_show"); }); $(".popup_close").click(function () { $(".popup_body").remov...