Draw line with parameter : HR Line « HTML « JavaScript DHTML






Draw line with parameter

<html>
<head>
<script language="JavaScript">
<!--
function hr(w, h) {
  document.writeln("<hr align=left width=" + w +"height=" + h +">");
 }
//-->
</script>
</head>
<body>
<h3>JavaScript Essentials <script>hr("75%","4")</script> </h3>
</body>
</html>

           
       








Related examples in the same category

1.HR size
2.Line without noShade
3.Controlling HR Object Properties (IE)