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