Draw line with parameter : JavaScript DHTML examples (example source code) » HTML » HR Line

JavaScript DHTML
C++
Java Products
Java Articles
JavaScript DHTML Home  »   HTML   » [  HR Line  ]   
 

Draw line with parameter

Please note that some example is only working under IE or Firefox.

/*
Javascript Essentials
by Jason J. Manger

Publisher: Mcgraw-Hill Osborne Media; 

ISBN: 0078822343
*/

<!-- 
  Program 3-5
-->
<html>
<head>
<script language="JavaScript">
<!--
function hr(w, h) {
  // Draw a horizontal rule. Note: do not use open() or close()
  // since we do not want to open a new document.
  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.  Controlling HR Object Properties








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.