javascript scrollbarBaseColor attribute


  Translation results:

scrollbar

UK[skrəʊba:] US[skroʊba:]

Scroll bar, scroll bar

base

UK[beɪs] 美[bes]

n. Base; basis; basis; base (such as decimal 10 and binary 2)

vt. Based on ; build... on; put... on or set up (base); put... on the base (or pedestal)

adj. despicable; low-level; cheap, inferior; common The

Third person singular: bases Plural: bases Present participle: basing Past tense: based Past participle: based Comparative: baser Superlative: basest

color

英['kʌlə(r)] 美[ˈkʌlɚ]

n.<Beauty> color, color; skin color, complexion, blood color; pigment, dye; essence

v.<Beauty> Color...; change the color of...; whitewash, render, color; blush

Third person singular: colors Plural: colors Present participle: coloring Past tense: colored past Participle: colored

javascript scrollbarBaseColor attributesyntax

Function: Set the background color for the entire scroll bar.

Syntax: Object.style.scrollbarBaseColor=color

javascript scrollbarBaseColor attributeexample

<html>
<head>
<script type="text/javascript">
function setScrollbarColor()
{
document.body.style.scrollbarBaseColor="green";
}
</script>
</head> 
<body>

<input type="button" onclick="setScrollbarColor()"
value="Set ScrollbarColor" />

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Home

Videos

Q&A