35,400 results
Open links in new tab
  1. How can I make a close button with JavaScript? - Stack Overflow

    Apr 4, 2019 · Start with trying to add a class. You can work on the transition after using css transitons. You can also just use …

  2. html - javascript close current window - Stack Overflow

    Jun 22, 2021 · The button that closes the tab/window (of course, it must be opened by JS) has the following click event that creates a …

  3. Window close () Method - W3Schools

    Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, …

  4. How To Create Closable List Items - W3Schools

    Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, …

  5. 15+ Close Button JavaScript Code Examples - OnAirCode

    New and cool js, CSS close button designs and example. Responsive javascript button close and menu button with code for free.

  6. Mastering the Close Button on a Section with HTML, CSS, and JavaScript

    Jan 16, 2026 · In this blog post, we'll explore the fundamental concepts, usage methods, common practices, and best practices for …

  7. How to Close a Window Using JavaScript Button

    Mar 17, 2025 · Have you ever wanted to implement a functionality where a user can close a window with the click of a button using …

  8. HTMLDialogElement: close () method - Web APIs | MDN

    Aug 27, 2026 · The following example shows a button that, when clicked, opens a <dialog> via the showModal () method. From there …

  9. CSS Animated Close Button Javascript

    Learn how to build a CSS Animated Close Button Javascript in this tutorial. Play with the project. Download the source code. Very …

  10. How to close window using JavaScript which is opened by ... - GeeksforGeeks

    Jul 23, 2025 · JavaScript does not allow one to close a window opened by the user, using the window.close () method due to security …