Style.borderColor Js Code Example


Example 1: javascript for border color


var getColor = prompt("Choose your color ", "Enter the  color ");
var color;
var el = document.getElementById("color");
el.innerHTML = "Whatever paragraph message.";
if (getColor =="Yellow" || getColor =="yellow" || getColor =="YELLOW")
{
color = "#FFFF66";
el.style.borderColor = color;
}

Example 2: javascript for border color


.borders{
background-color:#00ffff;
border-color:#000000;
border-width:2px;
border-style:solid;
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable