What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-09 13:46:04
get all links from html javascript
var rawHTML = '<html><body><a href="foo">bar</a><a href="narf">zort</a></body></html>'; var doc = document.createElement("html"); doc.innerHTML = rawHTML; var links = doc.getEl... Add solution -
Other 2021-10-08 09:23:04
how to download images on a website puppeteer
const puppeteer = require('puppeteer'); const fs = require('fs'); async function run() { const browser = await puppeteer.launch({ headless: false }); const page = await browser.newPage(); await page.setViewport({ width: 1200, heig... Add solution -
C# 2021-10-06 16:56:06
get attribute value of xml element c#
string name; XmlDocument xml = new XmlDocument(); xml.Load("theFile.xml"); // Or any other method to load your xml data in the XmlDocument. // For example if your xml data are in a string, use the LoadXml method. XmlElement elt = xml.SelectSing... Add solution -
Html 2021-10-03 21:51:02
how to add see button in password input in html
togglePassword.addEventListener('click', function (e) { // toggle the type attribute const type = password.getAttribute('type') === 'password' ? 'text' : 'password'; password.setAttribute('type', type); // toggle the eye / eye slash icon ... Add solution -
Html 2021-10-03 19:38:06
angular adding [routerLink] as a part of dynamic html
routerLink cannot be added after the content is already rendered but you can still achieve the desired result: Create a href with dynamic data and give it a class: `<a class="routerlink" href="${someDynamicUrl}">${someDynamicVa... Add solution -
Other 2021-10-03 14:21:03
image left rext right CodePen
<!DOCTYPE html> <html lang="en-US"> <head> <title>JavaScript Table Filter Search</title> <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel=&qu... Add solution -
Javascript 2021-10-02 16:32:03
javascript class click event
var elements = document.getElementsByClassName("classname"); var myFunction = function() { var attribute = this.getAttribute("data-myattribute"); alert(attribute); }; for (var i = 0; i < elements.length; i++) { element... Add solution