About 21,000,000 results
Open links in new tab
  1. html - Change icon with javascript - Stack Overflow

    Dec 4, 2017 · function changeIcon(classname or id) { $("i", this).toggleClass("icon-circle-arrow-up icon-circle-arrow-down"); } Note : the icons in above solution are copied from internet , please …

  2. Icons Tutorial - W3Schools

    How To Add Icons. To insert an icon, add the name of the icon class to any inline HTML element. The <i> and <span> elements are widely used to add icons. All the icons in the icon libraries …

  3. create icons in javascript - gistlib

    There are different ways to create icons in JavaScript. Two popular approaches are using SVG and creating icons programmatically using the Canvas API. SVG stands for Scalable Vector …

  4. Metadata Files: favicon, icon, and apple-icon | Next.js

    There are two ways to set app icons: Use an image file to set an app icon by placing a favicon, icon, or apple-icon image file within your /app directory. The favicon image can only be located …

  5. Making a Responsive Icon Button in JS - DEV Community

    Feb 4, 2021 · The leaf button and door button, when clicked, render a form for creating a new plant or new room, respectively. My goal was to have the icon change from its initial green …

  6. Set favicons with JavaScript - Medium

    Jan 2, 2018 · In this article, I’m gonna let you know how to set favicon — include shortcut icons for Android and iOS — with just few lines of code in JavaScript without fixing your HTML …

  7. javascript - Changing website favicon dynamically - Stack Overflow

    Aug 29, 2021 · According to WikiPedia, you can specify which favicon file to load using the link tag in the head section, with a parameter of rel="icon". For example: <link rel="icon" …

  8. How to create mini button and icon position in the page

    Jul 25, 2024 · In JavaScript, we are using the click() function to operate the rotation and change for icon color when we click the button, along with using the toggleclass() method to operate …

  9. How to Dynamically Add a Font Awesome Icon with Javascript

    Feb 23, 2024 · In this tutorial, we will show you how to add Font Awesome icons dynamically on click button using JavaScript. This means that you can create buttons or alert that change their …

  10. How to Change the Tab Icon on Chrome with JavaScript

    Apr 5, 2023 · To change the tab icon on Chrome with JavaScript, we can use the chrome.browserAction.setIcon method, which is part of the Chrome Extension API. This …

Refresh