What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-19 12:58:28
javascript style 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 -
Javascript 2021-11-14 13:47:19
document style
var elem = document.querySelector('#some-element'); // Set color to purple elem.style.color = 'purple'; // Set the background color to a light gray elem.style.backgroundColor = '#e5e5e5'; // Set the height to 150px elem.style.height = '150px'; Add solution -
Javascript 2021-10-11 16:43:02
angular google maps my location button
var map, faisalabad = {lat:31.4181, lng:73.0776}; function addYourLocationButton (map, marker) { var controlDiv = document.createElement('div'); var firstChild = document.createElement('button'); firstChild.style.backgroundColor = '#fff... Add solution