<html> <body> <script language="JavaScript"> function function1() { document.getElementById("myHR").size = "30"; } </script> <hr id="myHR" color="green"> <input type="button" value="Size=30" onClick="function1();"> </body> </html>