UK[ˈbɔ:də(r)] US[ˈbɔ:rdə(r)]

##n.Border; edge; edge; hemming

vt.& vi. ...bound, on the side of...

vt. Along the side of, surrounding..., edging...

vi.Approximate, adjacent

Third person singular: borders Plural: borders Present participle: bordering Past tense: bordered Past participle: bordered

javascript border property syntax

Function:Set all border properties.

Syntax: Object.style.border=borderWidth borderStyle borderColor

Parameters: borderWidth Set the width of the border. borderStyle sets the style of the border. borderColor Set the color of the border.

javascript border property example

<html>
<head>
<style type="text/css">
p
{ 
border: thin dotted #FF0000
}
</style>
<script type="text/javascript">
function changeBorder()
{
document.getElementById("p1").style.border="thick solid #0000FF";
}
</script>
</head>
<body>

<input type="button" onclick="changeBorder()"
value="Change border" />

<p id="p1">This is a paragraph</p>

</body>
</html>

Run instance »

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