border: thin solid #00FF00;
outline: thick solid #FF0000;
<script type="text/javascript">
function changeOutlineColor()
document.getElementById("p1").style.outlineColor="#00FF00";
<input type="button" onclick="changeOutlineColor()" value="Change outline color" />
<p id="p1">This is a paragraph</p>