javascript scrollbarFaceColor attribute


  Translation results:

scrollbar

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

Scroll bar, scroll bar

face

英[feɪs] 美[fes]

n.face;surface;face;aspect

vt.& vi.face;face...;face; Admit

vt. (feel unable to) cope; (know that it is difficult to handle) talk; must deal with (a certain situation); face...

Third person singular: faces Plural: faces Present participle: facing past tense: faced past participle: faced

color

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

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

v.<Beauty>To color...; to change the color of...; to embellish, to render, to give color; Blushing

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

javascript scrollbarFaceColor attributesyntax

Function:Set the foreground color of the scroll bar.

Syntax: Object.style.scrollbarFaceColor=color

javascript scrollbarFaceColor attributeexample

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

<input type="button" onclick="setScrollbarFaceColor()"
value="Set ScrollbarFaceColor" />

</body>
</html>

Run instance »

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

Home

Videos

Q&A