What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-30 20:58:04
change background color js tinymce
tinyMCE.init( mode : "textareas", theme : "simple", oninit : "postInitWork" }); function postInitWork() { var editor = tinymce.get('myEditorid'); editor.getBody().style.backgroundColor = "... Add solution -
Javascript 2021-09-30 02:12:04
event bubbling in javascript
<script> form.onclick = function(event) { event.target.style.backgroundColor = 'yellow'; // chrome needs some time to paint yellow setTimeout(() => { alert("target = " + event.target.tagName + ", this=" + this.tagN... Add solution -
Javascript 2021-09-29 03:16:02
javascript variable in html string
let div = document.createElement("div"); div.classList.add("yourClass"); div.setAttribute("onclick", "yourFunction()"); div.setAttribute("onmouseover", "hoverOn()") div.style.background = "y... Add solution -
Javascript 2021-09-28 01:24:04
how to use javascript so the color box change color and then change back
var btn = document.getElementById("#btn"); var box = document.getElementById("#box"); function changeColor() { box.style.backgroundColor = "red"; } function ifColor() { if (box.style.backgroundColor == "red") ... Add solution -
Javascript 2021-09-23 07:56:02
javascript change background color
// change background color for specific id .. function changebackground(){ document.getElementById('id').style.backgroundColor = 'green' ; } // change background color for whole body.. function changebackground(){ document.body.style.backgroundColor =... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5