Answers for "javascript remove all links"

6

js remove all local storage

window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item
Posted by: Guest on January-12-2020
0

extract all link with javascript

$(document).ready(function(){
    $('a').each(function(){
  console.log($(this).attr('href'));
});
});
Posted by: Guest on December-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language