What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-10-10 05:54:11
how to change an element in a different elements code css
//Pure JavaScript DOM var el = document.getElementById("elementID"); el.style.css-property = "cssattribute"; //When doing A CSS property that have multiple words, its typed differently //Instead of spaces or dashes, use camelCase //Ex... Add solution -
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-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