Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<style>
#test {
border: thick solid black;
text-align: center;
}
</style>
</head>
<body>
<div id="test">Hello Javascript!</div>
<br>
<button type="button" onclick="func()">Change color of the four borders</button>
<script>
function func() {
document.getElementById("test").style.borderColor = "red";
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507