What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-18 04:50:04
javascript make chat down scrollable automatically
const messages = document.getElementById('messages'); function appendMessage() { const message = document.getElementsByClassName('message')[0]; const newMessage = message.cloneNode(true); messages.appendChild(newMessage); } function getMessages() {... Add solution -
Javascript 2022-03-17 04:40:13
populate dropdown with a variable
/* HTML: <select id="myoptions"> </select> */ // Javascript: var x = "Jenny,John,Stephanie,Marc,Ryan,Jessica"; var options = x.split(","); var select = document.getElementById('myoptions'); for(var i=0; i<o... Add solution -
Javascript 2022-03-16 20:50:06
JAVASCRIPT EVENT.TARGET
Using the event.target property together with the element.tagName property to find out which element triggered a specified event: <body onclick="myFunction(event)"> <p>Click on any elements in this document to find out which element... Add solution -
Other 2022-03-16 16:15:33
more than 2x speed on youtube
Windows: Ctrl + Shift + J macOS: Command + Option + J Copy and paste this into the console: document.getElementsByTagName("video")[0].playbackRate = x Replace x with the speed you want the video to be played at, and enter/return. Works for spe... Add solution -
Javascript 2022-03-16 13:25:07
Js remove
var div = document.getElementById('div-01'); div.remove(); Add solution
Best helpers
Rlw
+5
John Rualo
+5
Michael Wang
+5
Heavens
+5
Calvino
+5
Withparadox2
+5
SuzyTypehead
+5
Aj Morales
+5