random rgba color javascript except black
function random_bg_color() {
var x = Math.floor(Math.random() * 256);
var y = 100+ Math.floor(Math.random() * 256);
var z = 50+ Math.floor(Math.random() * 256);
var bgColor = "rgb(" + x + "," + y + "," + z + ")";
console.log(bgColor);
document.body.style.background = bgColor;
}
random_bg_color();
Also in JavaScript:
- ajax cdn
- javscript insert element after another
- discord.js v12 how to set owner commands
- fibonacci javascript
- javascript execute function by string name
- react native text input next field hooks focus
- copy a file and paste with fs
- react materilize
- how to convert time to am pm in javascript
- dynamic page in html
- jquery on click remove parent div
- output angular
- javascript object entries
- javascript inheritance
- javascript update text in div
- do nonmetals lose electrons
- delete character between index
- open json file in current directory python
- nohup run nodejs
- es6 method definition syntax
- express request body undefined
- get json by id
- javascript json decode
- css vw not working on mobile