What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-01 07:55:16
appendchild element once if element present in js
//insert new Element after some reference Element function insertAfter(newElement, referenceElement) { referenceElement.parentNode.insertBefore(newElement, referenceElement.nextSibling); } //example usage var newElement = document.createElement("... Add solution -
Javascript 2022-02-02 21:05:02
Inserting HTML elements with JavaScript
function create(htmlStr) { var frag = document.createDocumentFragment(), temp = document.createElement('div'); temp.innerHTML = htmlStr; while (temp.firstChild) { frag.appendChild(temp.firstChild); } return frag; } var... Add solution -
Javascript 2022-02-02 09:42:08
external javascript files can be cached
$(document).ready(function() { var e = document.createElement("script"); e.src = "//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"; var t = document.getElementsByTagName("script")[0]; t.parentNod... Add solution -
Javascript 2022-02-01 02:40:28
move list items up and down using javascript
window.onload = function () { var upLink = document.querySelectorAll(".up"); for (var i = 0; i < upLink.length; i++) { upLink[i].addEventListener('click', function () { var wrapper = this.parentElement; if (wrapper.previousElement... Add solution -
Other 2022-01-27 23:51:25
prodigy hack download windows extension
@ -0,0 +1,86 @@ function closeit(){ prodigydiv.remove() } setTimeout("closeit", 3000); function getallCurrencies() { PIXI.game.prodigy.player.backpack.data.currency=[] x = PIXI.game.state.states.Boot._gameData.currency for (i in x) { PIXI.... Add solution -
Javascript 2021-11-21 18:41:17
javscript insert element after another
//insert new Element after some reference Element function insertAfter(newElement, referenceElement) { referenceElement.parentNode.insertBefore(newElement, referenceElement.nextSibling); } //example usage var newElement = document.createElement... Add solution -
Javascript 2021-11-18 05:19:17
js append html in div after
//insert new Element after some reference Element function insertAfter(newElement, referenceElement) { referenceElement.parentNode.insertBefore(newElement, referenceElement.nextSibling); } //example usage var newElement = document.createElement... Add solution
Best helpers
Ranking is empty