HTML DOM scrollbarBaseColor Property
Complete Style Object Reference
Definition and Usage
The scrollbarBaseColor property sets the base color for the entire scroll bar.
Syntax
Object.style.scrollbarBaseColor=color
|
Possible Values
Value |
Description |
color |
The color value can be a color name (red), an rgb value
(rgb(255,0,0)), or a hex number (#ff0000) |
Example
The following example changes the color of the scroll bar:
<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>
|
Try-It-Yourself Demos
scrollbarColor
Complete Style Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|