Printing in one line like in Java or C/C++
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Printing in one line like in Java or C/C++

From: Jamiil <jalqadir@netscape.net>
Date: Fri Mar 31 2006 - 00:46:01 CEST

JavaScipt
~~~~~~~
      <script type="text/javascript">
        name = new String("My Name");
        document.write("<H4>Author: </H4>" + name);
      </script>

I would like the word 'Author:' to be in 4th level heading and the name
variable value to be displayed in regular font, I get that but in two
lines. What can I do to get the browser to display the two values in
one line?

TIA.
Received on Mon May 1 04:33:06 2006