<html> <body> <script language="JavaScript"> function function1() { document.getElementById("myHR").noShade = false } </script> <hr id="myHR" noshade="true" size="3"> <input type="button" value="Add a shade" onClick="function1();"> </body> </html>